2
0
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:
rudolfkoenig 2018-09-30 10:46:31 +00:00
parent 92efef0b84
commit 7652a024d3

View File

@ -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}) {