Skip Menu |

This queue is for tickets about the Graph-Easy CPAN distribution.

Report information
The Basics
Id: 40392
Status: open
Worked: 5 min
Priority: 0/
Queue: Graph-Easy

People
Owner: TELS [...] cpan.org
Requestors: rgovostes [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.63
Fixed in: (no value)



Subject: Bug escaping / unescaping strings
In converting a GDL file to DOT format, I've noticed the following misbehavior taking place. Consider the following node: node: { title: "32" label: "string \"spring \\\"sling\\\" sting\" swing" } Graph::Easy seems to be unescaping characters in the label, then selectively re-escaping them (e.g., only escaping the quotes): 1. string \"spring \\\"sling\\\" sting\" swing 2. string "spring \"sling\" sting" swing 3. string \"spring \\"sling\\" sting\" swing By not properly escaping the backslash, the sequence \\" indicates the end of the label string, which generates a parse error in dot.
On Sun Oct 26 15:29:51 2008, rgov wrote: Show quoted text
> In converting a GDL file to DOT format, I've noticed the following > misbehavior taking place. > Consider the following node: > > node: { title: "32" label: "string \"spring \\\"sling\\\" sting\" > swing" } > > Graph::Easy seems to be unescaping characters in the label, then > selectively re-escaping them > (e.g., only escaping the quotes): > > 1. string \"spring \\\"sling\\\" sting\" swing > 2. string "spring \"sling\" sting" swing > 3. string \"spring \\"sling\\" sting\" swing > > By not properly escaping the backslash, the sequence \\" indicates the > end of the label string, > which generates a parse error in dot.
Thanx for your report, you are right, I forgot to re-escape the backslash. Now added that to As_graphviz.pm, the fix will appear in v0.65 of Graph::Easy.