Skip Menu |

This queue is for tickets about the GraphViz CPAN distribution.

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

People
Owner: Nobody in particular
Requestors: mcmahon [...] ibiblio.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.00
Fixed in: 1.8



Subject: GraphViz needs a "don't escape labels' call
GraphViz::Data::Structure, as of 2.00, has changed the way it handles node labels. Previously, whatever was passed as a note label was respected. Now, GraphViz's add_node() routine *always* escapes the label (at line 411). This causes anything that calculates its own record labels to break (in particular, all of GraphViz::Data::Structure's complex structures stop working). The following patch will fix this: --- /usr/local/lib/perl5/site_perl/5.8.3/GraphViz.pm Wed Sep 22 15:56:22 2004 +++ GraphViz.pm Wed Sep 22 15:55:46 2004 @@ -408,7 +408,7 @@ $node->{label} = $node->{name}; } } else { - $node->{label} =~ s#([|<>\[\]{}"])#\\$1#g; + $node->{label} =~ s#([|<>\[\]{}"])#\\$1#g unless $node->{shape} eq 'record'; } delete $node->{cluster}