2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-28 11:01:59 +00:00

98_DOIF.pm: fixed: Leerzeichen am Ende der Definition

git-svn-id: https://svn.fhem.de/fhem/trunk@9259 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
damian-s 2015-09-15 20:49:46 +00:00
parent 15d75dd09a
commit ebb0b6a8fd

View File

@ -1181,7 +1181,7 @@ CmdDoIf($$)
if (!$tail) { if (!$tail) {
$tail=""; $tail="";
} else { } else {
$tail =~ s/(##.*\n)|(##.*$)|\n//g;; $tail =~ s/(##.*\n)|(##.*$)|\n//g;
} }
# if (defined $hash->{helper}) #def modify # if (defined $hash->{helper}) #def modify
@ -1221,6 +1221,7 @@ CmdDoIf($$)
} }
$hash->{do}{$i}{0}=$if_cmd_ori if ($j==0); #do without brackets $hash->{do}{$i}{0}=$if_cmd_ori if ($j==0); #do without brackets
$last_do=$i; $last_do=$i;
$tail =~ s/^\s*$//g;
if (length($tail)) { if (length($tail)) {
$tail =~ /^\s*DOELSEIF/g; $tail =~ /^\s*DOELSEIF/g;
if (pos($tail)) { if (pos($tail)) {