debian-bugs-dist.lists.debian.org
[Top] [All Lists]

Bug#274247: gnuplot: SVG terminal driver does not escape &s

Subject: Bug#274247: gnuplot: SVG terminal driver does not escape &s
From: Henry House
Date: Thu, 30 Sep 2004 08:40:03 -0700
Package: gnuplot
Version: 4.0.0-2
Severity: important

An ampersand appearing in a label needs to be escaped to & in SVG
output because SVG is an implementation of SGML and & is a reserved
character. Gnuplot's SVG terminal driver, however, does not do this.
Here is an example that produces invalid SVG output:

# the dataset:
1   220600   field       
2   146965   range       
3    43948   vegetable   
4    32015   fruit & nut 
5    20708   seed        

# the gnuplot program:
set terminal svg
set ylabel 'thousands of acres'
set xtics ('field' 1, 'range' 2, 'vegetable' 3, 'fruit & nut' 4, 'seed' 5)
plot 'sector-acreages.dat' using ($1):($2 / 1000) title '' with impulses


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (989, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-ow1
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages gnuplot depends on:
ii  gnuplot-nox                   4.0.0-2    A command-line driven interactive 
ii  gnuplot-x11                   4.0.0-2    X11-terminal driver for gnuplot

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#274247: gnuplot: SVG terminal driver does not escape &s, Henry House <=
Privacy Policy