Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001020graphvizDotpublic2005-12-16 09:042011-04-28 04:03
ReporterStas Fomin 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0001020: Multiline justification ("\l","\r") works only for two first lines.
Description



From http://www.graphviz.org/doc/info/attrs.html#k:escString [^]



 In addition, if the associated attribute is label, headlabel or taillabel, the escape sequences "\n",
 "\l" and "\r" divide the label into lines, centered, left-justified, and right-justified,
 respectively.



But actually, this alignment works only for first two lines.
(Flags not important,
this bug tested on Windows and Linux Graphviz versions 2.0, 2.2, 2.6.)



Description and examples for this bug:
http://lib.custis.ru/index.php/Bug_14470 [^]
Additional Information

[ellson] Not so.

The default lineend is \n (i.e. centering). If you are using something else then it must be provided explicitly,
and in particular on the last line.

Try this:
<CD>
digraph G{
  leftjustified[shape=plaintext label="leftjustified\lline2\lline3\lline4\l"];
  rightjustified[shape=plaintext label="rightjustified\rline2\rline3\rline4\r"];
}
</CD>

Now, perhaps we could have the default be the same as last-used, but thats more
of an enhancement request than a bug. Its not clear if it can be changed at this point because
of backward compatibility.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID841
INPUT-FILEhttp://www.graphviz.org/bugs/b841.dot [^]
OUTPUT-FILEhttp://www.graphviz.org/bugs/b841.png [^]
STATUS-COMMENTFixed
VERSION     2.6
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 => user695


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