2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-21 07:56:03 +00:00

SVG: Fixing the : problem when writing FS20 plot files

git-svn-id: https://svn.fhem.de/fhem/trunk@3809 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2013-08-27 16:49:31 +00:00
parent 3d415c67ac
commit bedfbfa8d2

View File

@ -414,7 +414,9 @@ SVG_WriteGplot($)
my $prf = "par_${i}_";
my @v = map {$FW_webArgs{"$prf$_"}}
grep {defined($FW_webArgs{"$prf$_"})} (0..9);
my $r = @v > 1 ? join(":", map { s/:/\\x3a/g; $_ } @v) : $v[0];
my $r = @v > 1 ?
join(":", map { $v[$_] =~ s/:/\\x3a/g if($_<$#v); $v[$_] } 0..$#v) :
$v[0];
print FH "#$ld $r\n";
push @plot, "\"<IN>\" using 1:2 axes ".