98_SVG.pm: remove \r from .gplot file (Forum #140585)

git-svn-id: https://svn.fhem.de/fhem/trunk@29644 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2025-02-09 14:18:02 +00:00
parent c29983eae4
commit f0bd6d9112

View File

@@ -820,6 +820,7 @@ SVG_readgplotfile($$$)
}; };
foreach my $l (@svgplotfile) { foreach my $l (@svgplotfile) {
$l =~ s/\r//g;
$l = "$l\n" unless $l =~ m/\n$/; $l = "$l\n" unless $l =~ m/\n$/;
map { $l =~ s/%($_)%/&$prSubst($1)/ge } keys %$pr if($plotReplace); map { $l =~ s/%($_)%/&$prSubst($1)/ge } keys %$pr if($plotReplace);