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 bf7160234a
commit 667b846776

View File

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