diff --git a/fhem/fhem.pl b/fhem/fhem.pl index d5da85ad9..f94b55c52 100755 --- a/fhem/fhem.pl +++ b/fhem/fhem.pl @@ -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"; }