graphvix icon indicating copy to clipboard operation
graphvix copied to clipboard

Throws error if quotes exist in labels

Open lalo2302 opened this issue 6 years ago • 0 comments

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)

lalo2302 avatar Apr 08 '18 18:04 lalo2302