Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002323graphvizDotpublic2013-08-07 08:292013-08-07 10:54
Assigned Toerg 
Platformx86_64OSLinuxOS VersionDebian Sid
Summary0002323: HTML string is interpreted twice
DescriptionAsking dot, neato or twopi to parse the following:

digraph MarkupBug
    testNode1 [label=<<TABLE><TR><TD><1></TD></TR></TABLE>>];
    testNode2 [label=<<TABLE><TR><TD>A</TD></TR></TABLE>>];

results in:

Error - pango_parse_markup: Error on line 1 char 33: '1' is not a valid name

An output file is produced despite the error message. It seems the HTML string is unescaped twice. If pango_parse_markup() fails to parse it, the result turns out as expected. Otherwise pango interprets the string again.

In the example testNode1 doesn't parse and produces the error message. testNode2 does parse as pango markup and results in underlined text, which is wrong.

Furthermore the location of the error (line 1 char 33) doesn't seem to be related to the actual input file.
Steps To ReproduceRun dot, neat or twopi on the attached input file:

Additional InformationReproducible also with 2.30.1 and with git master (6b520d8f00f7a505c0ea3ef04d87374523169644).

Not reproducible with 2.26.3 from Debian.

The double unescaping doesn't happen if the enclosing tag is omitted.
TagsNo tags attached.
VERSIONgit master 6b520d8f00f7a505c0ea3ef04d87374523169644
Attached Filesdot file icon [^] (177 bytes) 2013-08-07 08:29

- Relationships

-  Notes
User avatar (0000425)
zub (reporter)
2013-08-07 08:31

Ah, I see that Mantis is being too helpful and it interpreted the HTML-ish strings in the description. Please ignore the DOT snippet there and just look at the attached
User avatar (0000426)
erg (administrator)
2013-08-07 10:54

Thanks for the bug report.

- Issue History
Date Modified Username Field Change
2013-08-07 08:29 zub New Issue
2013-08-07 08:29 zub File Added:
2013-08-07 08:31 zub Note Added: 0000425
2013-08-07 10:54 erg Note Added: 0000426
2013-08-07 10:54 erg Assigned To => erg
2013-08-07 10:54 erg Status new => resolved
2013-08-07 10:54 erg Resolution open => fixed
2013-08-07 10:54 erg Description Updated View Revisions

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