98_SVG.pm: plotReplace fix

git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@13831 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-28 08:02:30 +00:00
parent d7c72af7b7
commit 1260e4d830

View File

@ -764,7 +764,7 @@ SVG_readgplotfile($$$)
prSubst($) prSubst($)
{ {
my $v = $pr->{$_[0]}; my $v = $pr->{$_[0]};
return $_[0] if(!$v); return "%$_[0]%" if(!$v);
if($v =~ m/^{.*}$/) { if($v =~ m/^{.*}$/) {
$cmdFromAnalyze = $v; $cmdFromAnalyze = $v;
return eval $v; return eval $v;
@ -878,7 +878,6 @@ SVG_substcfg($$$$$$)
} }
} }
$plot =~ s/\r//g; # For our windows friends... $plot =~ s/\r//g; # For our windows friends...
$gplot_script =~ s/\r//g; $gplot_script =~ s/\r//g;