[Dot] Node label exceeds size of node in in SVG but not PNG
Ported Issue from Mantis Original ID: 1007 Reported By: Todd Bruner
SEVERITY: MAJOR Submitted: 2005-11-22 23:57:17
OS: X86-LINUX-DEBIAN LINUX TESTING 2
VERSION: 2.6
DESCRIPTION
In trying to create a graph with nodes with long labels and svg output,
I see two things: 1. text exceeds the size of the node, 2. text from
neighboring nodes overlap. When I output the same dotfile to png,
however, The text resides nicely within the ellipse.
Using shorter labels would not be my prefered fix.
STEPS TO REPRODUCE
digraph test { graph [ratio=fill, bgcolor="#ffffff"]; node [label="\N"]; graph [bb="0,0,337,322"]; node1 [label="Really Long Label Number One.\nI need to put a lot of text.", color="#ff0000", fontsize="10px", shape=ellipse]; node2 [label="This label is long as well. I need this text though", color="#00ff00", fontsize="10px", shape=ellipse]; node1 -> node2 [label="1 -> 2"]; }