graphvix
graphvix copied to clipboard
Throws error if quotes exist in labels
To recreate:
alias Graphvix.{Graph, Node}
Graph.new(:test)
Node.new(label: "\"test\"")
Graph.save
Will generate a dot file like this:
digraph G {
node_1 [label=""test""];
}
The problem is that first it writes it like:
"digraph G {\n node_1 [label=\"\"test\"\"];\n}"
but then it escapes the quotes, when they should be kept unescaped (I hope that makes sense)