core[patch]: fix edge labels for mermaid graphs (#26201)

This commit is contained in:
Vadym Barda 2024-09-08 10:35:25 -04:00 committed by GitHub
parent 9bd4f1dfa8
commit 1b3bd52e0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -119,9 +119,9 @@ def draw_mermaid(
for i in range(0, len(words), wrap_label_n_words)
)
if edge.conditional:
edge_label = f" -. &nbsp{edge_data}&nbsp .-> "
edge_label = f" -.  {edge_data}  .-> "
else:
edge_label = f" -- &nbsp{edge_data}&nbsp --> "
edge_label = f" --  {edge_data}  --> "
else:
if edge.conditional:
edge_label = " -.-> "