Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000560graphvizDotpublic2001-12-10 10:522011-04-28 04:02
ReporterEmmanuel Pietriga4 
Assigned Tonorth 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Other-Win2000OS Version
Summary0000560: & chars are not escaped when outputing SVG
Description



If the input DOT file contains ampersands ('&'), like in
"Literal_150" [shape=box,label="Protocols & Format WG",URL="P1"];



these are not escaped as & or & when requesting an SVG output,
resulting in NOT well-formed XML documents that cannot be parsed correctly.






This is a major bug for people using the SVG output, since it means that you cannot
parse the SVG file.






Emmanuel
Steps To Reproduce

"Literal_150" [shape=box,label="Protocols & Format WG",URL="P1"];

I'm justing giving a sample of the file illustrating the source of the problem (it is huge, about 600Kb)
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
This should be easy to fix (when serializing your SVG from DOT,
just replace & by & or better &).

You might also want to check that '<' '>' ''' and ''' are escaped properly
(I haven't checked these, and I do not know what is allowed exactly in
FORMER-ID66
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     1.7.6
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => Stephen North


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker