mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-20 13:26:02 +00:00
98_telnet: remove tabs at the end of the line, terminate empty lines if there is not \ (Forum #91589)
git-svn-id: https://svn.fhem.de/fhem/trunk@17433 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
92efef0b84
commit
7652a024d3
@ -229,9 +229,9 @@ telnet_Read($)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$gotCmd = 1;
|
$gotCmd = 1;
|
||||||
if($cmd) {
|
if($cmd || $hash->{prevlines}) {
|
||||||
if($cmd =~ m/\\ *$/) { # Multi-line
|
if($cmd =~ m/\\\s*$/) { # Multi-line
|
||||||
$cmd =~ s/\\ *$//;
|
$cmd =~ s/\\\s*$//;
|
||||||
$hash->{prevlines} .= $cmd . "\n";
|
$hash->{prevlines} .= $cmd . "\n";
|
||||||
} else {
|
} else {
|
||||||
if($hash->{prevlines}) {
|
if($hash->{prevlines}) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user