Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001948graphvizNeatopublic2010-09-07 15:202011-04-28 04:03
ReporterHong 
Assigned Togviz 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionno change required 
PlatformOS*-*-OS Version
Summary0001948: Multiline in Tooltip
Description



I would like to have two lines in a tooltip of a node.
E.g. when I hover my mouse over a node named A, it will show the following tooltip:
<CD>
-----------------
the first line
the second line
-----------------
</CD>



But it doesn't work for using "\n". Here is the code:



<CD>
graph G {
A [tooltip="the first line \n the second line"]
}
</CD>



I have tried to replace \n with , but it doesn't work.
However, if i replace \n with !, it successfully shows the ! character.
Hence, I wonder if it is a bug for not allowing or graphviz simply doesn't support multiline tooltip.



In addition, is there any way for me to have multiline in tooltip? Thanks.
Steps To Reproduce

graph G {
A [tooltip="the first line \n the second line"]
}
Additional Information

[erg] At last check, there is no standard way to specify multiline tooltips for
all browsers. Some people have found embedding
<CD>

</CD>
works for some browsers.
That is, set
<CD>
tooltip="the first line the second line"]
</CD>
This works in Safari but not in Firefox.

There are also examples on the web showing how to achieve this using javascript.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID2028
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTRequest
VERSION     2.26.3
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 => user1


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