mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-24 09:09:19 +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:
parent
15d75dd09a
commit
ebb0b6a8fd
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user