Fix draw_callseq_mermaid cell name

This commit is contained in:
2025-08-04 22:40:09 +03:00
parent 45010c1cf3
commit 849d6094a9
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
[project]
name = "breakshaft"
version = "0.1.3"
version = "0.1.3.post1"
description = "Library for in-time codegen for type conversion"
authors = [
{ name = "nikto_b", email = "niktob560@yandex.ru" }

View File

@@ -74,7 +74,7 @@ def draw_callseq_mermaid(callseq: list[ConversionPoint]):
ret = ['flowchart TD\n\n']
ret += [' %%defs:']
for cp_i, cp in enumerate(callseq):
ret.append(f' e{cp_i}[{shield_mermaid_name(str(cp))}]')
ret.append(f' e{cp_i}["{shield_mermaid_name(str(cp))}"]')
ret += ['', '', ' %%edges:']
for cp_i, cp in enumerate(callseq[:-1]):
ret.append(f' e{cp_i}-->e{cp_i + 1}')