Skip Menu |

This queue is for tickets about the GraphViz CPAN distribution.

Report information
The Basics
Id: 11514
Status: resolved
Priority: 0/
Queue: GraphViz

People
Owner: Nobody in particular
Requestors: heather [...] cenic.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.02
Fixed in: (no value)



Subject: Handling of \n, etc. in cluster names is incomplete
While one can add \n, etc. to cluster labels, this causes the use of a cluster name which GraphViz.pm rejects as unacceptable. GraphViz.pm substitutes a random name (breaking fdp layouts). The current logic is surrounding cluster names and labels is $name = $cluster->{label} $name = $cluster->{name} unless defined $name This seems broken (it acts like name and label are almost interchangeable attributes with the undocumented one, "label", preferred!) A more useful logic would be: $name = $cluster->{name} $label= $cluster->{label} $name = $cluster->{label} unless defined $name $label = $cluster->{name} unless defined $label You get the idea . . . . If nothing else, I should be able to specify both label and name attributes and not have one obliterate the other . . . thanks! Heather
This issue is fixed in GraphViz2 V 1.00. In fact, GraphViz2 ships with a demo scripts/quote.pl to show how to put both " and \n into node names and labels. There're won't be any further development on GraphViz.