Number: 1767
Title: cmapx title does not convert linefeeds
Submitter: Joerg Matz
Date: Tue Sep 15 05:28:39 2009
Subsys: Dot
Version: 2.24
System: x86-Windows-XP
Severity: minor
Problem:
When using multiline label, the corresponding area title does not show linefeeds, but the character pair "n" instead.

Example:

echo digraph test { a [label="line1nline2", URL="http://www.graphviz.org"];} | dot -Tcmapx

gives

<map id="test" name="test"> <area shape="poly" href="http://www.graphviz.org" title="line1nline2" alt="" coords="86,44 84,32 78,22 69,13 58,8 45,6 33,8 22,13 13,22 7,325,44 7,56 13,66 22,75 33,80 45,82 58,80 69,75 78,66 84,56"/> </map>

where it should give <map id="test" name="test"> <area shape="poly" href="http://www.graphviz.org" title="line1&#13;line2" alt="" coords="86,44 84,32 78,22 69,13 58,8 45,6 33,8 22,13 13,22 7,325,44 7,56 13,66 22,75 33,80 45,82 58,80 69,75 78,66 84,56"/> </map>

The mapping n -> &#13; insures a linefeed in the areas tooltips/baloon help.
Input:

digraph test { a [label="line1nline2", URL="http://www.graphviz.org"];}
Comments:
[joerg.matz] Please remove the bug entry I submitted today. I've found a work around for this issue.

Using HTML / UTF8 encoded linefeeds (&#10;&#13;) instead of "n" sequence, I can separate the lines in the graphic output as well as in the imagemap.

[erg] This should still be fixed.
Owner: *
Status: *