Skip to content

Throws error if quotes exist in labels #17

@lalo2302

Description

@lalo2302

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions