Skip to content

Newlines in labels not parsed correctly. #13

@PlanetEarthSoftware

Description

@PlanetEarthSoftware
digraph  {
    node [ordering=out shape=box style="filled,rounded" fontname="Arial" fillcolor=white color=white]

    1 [ label="hello"]
    5 [ label="good\nworld" fillcolor=yellow ]
    2 [ label="orphan" fontcolor=purple fillcolor=red ]
    3 [ label="with" style="invis"]
    4 [ label="child"  ]
    1 -> 5 
    1 -> 4 [ label="with" "vnd.sia.label-id"=3 ]
}

Node 5 has the label "good\nworld" which is displayed by dot as

Good
World

Reading the node in DotParser I see the label as "goodnworld" :o(

Graph rendered by dot showing newline attached.
import dot

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