2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +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:
rudolfkoenig 2022-06-04 09:50:00 +00:00
parent 8f8b83d1f6
commit 3b0b81c141

View File

@ -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";
}