mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 03:06:37 +00:00
fhem.pl: escape newline for volatile definitions (Forum #127911)
git-svn-id: https://svn.fhem.de/fhem/trunk@26115 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8f8b83d1f6
commit
3b0b81c141
@ -1633,6 +1633,7 @@ WriteStatefile()
|
||||
if($defs{$d}{VOLATILE}) {
|
||||
my $def = $defs{$d}{DEF};
|
||||
$def =~ s/;/;;/g; # follow-on-for-timer at
|
||||
$def =~ s/\n/\\\n/g;
|
||||
print $SFH "define $d $defs{$d}{TYPE} $def\n";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user