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 
PlatformOS*-*-OS Version
Summary0001020: Multiline justification ("\l","\r") works only for two first lines.

From [^]

 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,

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: [^]
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:
digraph G{
  leftjustified[shape=plaintext label="leftjustified\lline2\lline3\lline4\l"];
  rightjustified[shape=plaintext label="rightjustified\rline2\rline3\rline4\r"];

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.
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