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

Newlines in labels not parsed correctly. #13

Open
PlanetEarthSoftware opened this issue Dec 4, 2024 · 0 comments
Open

Newlines in labels not parsed correctly. #13

PlanetEarthSoftware opened this issue Dec 4, 2024 · 0 comments

Comments

@PlanetEarthSoftware
Copy link

PlanetEarthSoftware commented Dec 4, 2024

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

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