Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws error if quotes exist in labels #17

Open
lalo2302 opened this issue Apr 8, 2018 · 0 comments
Open

Throws error if quotes exist in labels #17

lalo2302 opened this issue Apr 8, 2018 · 0 comments

Comments

@lalo2302
Copy link

lalo2302 commented Apr 8, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant