Skip to content

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

Merged
juergbi merged 2 commits intoapache:masterfrom
harrysarson:harry/graph
Feb 7, 2025
Merged

contrib/bst-graph: Escape names when using as node_id#1979
juergbi merged 2 commits intoapache:masterfrom
harrysarson:harry/graph

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