[Dot] Multi-line edge labels take up too much space
Ported Issue from Mantis Original ID: 2341 Reported By: Telcontar
SEVERITY: MINOR Submitted: 2013-08-26 03:09:27
OS: MAC OS X
OS BUILD: 10.7.5
PLATFORM: MAC USING FINK VERSION OF DOT
In complex diagrams, multi-line labels take up more space than necessary. Simple cases seem to work correctly. Probably the internal layout rules are overly strict in some cases.
STEPS TO REPRODUCE
Unfortunately I only have a complex example. The problem concerns the top edge label (on the red edge). Label "NCPE" should be "NoConnPendingExc.". Even though there is plenty of horizontal space, the red edge becomes much longer when the text is changed. It should stay at its current size.
Currently I work around the bug by using "NCPE" as a placeholder and replacing it later in the generated Postscript file. The output looks good but of course I would prefer if graphviz generated the correct output right away.