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

contrib/bst-graph: Escape names when using as node_id #1979

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

harrysarson
Copy link
Contributor

@harrysarson harrysarson commented Jan 7, 2025

Colons in node_ids generate invalid graphviz, therefore escape the name
and use a label attribute to render correct name in the graph.

This PR also uses a raw string for the regex to fix SyntaxWarning: invalid escape sequence '\|'.

@juergbi
Copy link
Contributor

juergbi commented Jan 17, 2025

Please prefix your commit summaries with contrib/bst-graph:

@juergbi juergbi changed the title Escape names when using as node_id contrib/bst-graph: Escape names when using as node_id Jan 17, 2025
Colons in node_ids generate invalid graphviz, therefore escape the name
and use a `label` attribute to render correct name in the graph.
Without raw string I see `SyntaxWarning: invalid escape sequence '\|'`.
@harrysarson
Copy link
Contributor Author

Please prefix your commit summaries with contrib/bst-graph:

Done

@juergbi juergbi merged commit e99e6bb into apache:master Feb 7, 2025
17 checks passed
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

Successfully merging this pull request may close these issues.

2 participants