Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002229graphvizOther toolspublic2012-05-09 10:362012-05-10 17:54
Reporterrp 
Assigned Toerg 
PrioritynormalSeveritynormalReproducibilityalways
StatusresolvedResolutionfixed 
PlatformCygwinOSOS Version
Summary0002229: gv2gxl does not escape XML strings, producing invalid XML
Descriptiongv2gxl does not escape XML strings, producing invalid XML
Steps To Reproducesh> cat amp.dot
digraph G
{
  "a" -> "b&c";
}
sh> dot -Tsvg amp.dot | fgrep node
<g id="node1" class="node"><title>a</title>
<g id="node3" class="node"><title>b&c</title>
sh> gv2gxl amp.dot | xmllint -
-:10: parser error : EntityRef: expecting ';'
                                <string>b&c</string>
                                           ^
sh>
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSIONgraphviz version 2.28.0 (20111114.0123)
Attached Files

- Relationships

-  Notes
User avatar (0000255)
rp (reporter)
2012-05-09 12:26

Note: I didn't realize that this input form has the opposite bug, and strips away the amp entities that appear in the SVG code! They do appear there, and fail to appear in the gv2gxl output.

My workaround is to preprocess the dot file with

  sed 's/&/\&/g'

- Issue History
Date Modified Username Field Change
2012-05-09 10:36 rp New Issue
2012-05-09 12:26 rp Note Added: 0000255
2012-05-10 17:54 erg Assigned To => erg
2012-05-10 17:54 erg Status new => resolved
2012-05-10 17:54 erg Resolution open => fixed
2012-05-10 17:54 erg Steps to Reproduce Updated View Revisions


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