Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001761graphvizDotpublic2009-11-18 10:292011-04-28 04:03
ReporterJean-Daniel Badet 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSx86-Windows-XP Pro 2002 SP3OS Version
Summary0001761: dot syntax error when text in html labels contains '<', '/' or '>'.
Description



dot -Tsvg -o dotbug.svg dotbug.dot



produces the result :



<CD>
Error: dotbug.dot:4: syntax error near line 4
context: <tr><td><font point-size="16">J500D011</font>
NODE ==> A >>> / <<< TITLE</td></tr>
Error: mismatched tag in line 2
.. NODE ==</HTML> ...
in label of node NODE_A
</CD>



This (or a similar error) occurs when any of '<', '/' or '>' is present
in a html-like label text field. I didn't find a way to escape them.



Output svg file is well formed but doesn't show the expected result
(original node broken down into a collection of nodes 'NODE_A', 'TITLE',
'/td', '/tr', 'tr', 'td' and 'Subtitle').
Steps To Reproduce

digraph { rankdir=TB ;
  node [ fontname=Arial ] ;
  NODE_A [ label=<<table border="0" cellborder="0" cellpadding="2" cellspacing="0">
           <tr><td><font point-size="16">J500D011</font>
NODE ==> A / TITLE</td></tr>
           <tr><td>Subtitle</td></tr></table>> URL="http://somewhere" [^] ] ;
  }
Additional Information

A supported escape sequence in html label strings would be welcome.
Thanks.

[erg] Slashes '/' are okay, but one can't use '<' or '>' or '&'. For these last,
use < or > or & respectively.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1821
INPUT-FILE
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1821.svg [^]
STATUS-COMMENTFixed (18 Nov 2009)
VERSION     2.22.2 (20090313.1817)
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => erg


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