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.