From 667b846776c916d7dab99ccf85dcbfd7965c6f29 Mon Sep 17 00:00:00 2001 From: damian-s Date: Tue, 15 Sep 2015 20:49:46 +0000 Subject: [PATCH] 98_DOIF.pm: fixed: Leerzeichen am Ende der Definition git-svn-id: https://svn.fhem.de/fhem/trunk@9259 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_DOIF.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fhem/FHEM/98_DOIF.pm b/fhem/FHEM/98_DOIF.pm index 2ae8bf690..2fd362d5c 100644 --- a/fhem/FHEM/98_DOIF.pm +++ b/fhem/FHEM/98_DOIF.pm @@ -1181,9 +1181,9 @@ CmdDoIf($$) if (!$tail) { $tail=""; } else { - $tail =~ s/(##.*\n)|(##.*$)|\n//g;; + $tail =~ s/(##.*\n)|(##.*$)|\n//g; } - + # if (defined $hash->{helper}) #def modify if ($init_done) { @@ -1221,6 +1221,7 @@ CmdDoIf($$) } $hash->{do}{$i}{0}=$if_cmd_ori if ($j==0); #do without brackets $last_do=$i; + $tail =~ s/^\s*$//g; if (length($tail)) { $tail =~ /^\s*DOELSEIF/g; if (pos($tail)) {