Skip to content

Commit 4f655de

Browse files
committed
Fixed erros in convert_model.py
1 parent ef1d7d4 commit 4f655de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

convert_model.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ def parse_node_plantuml(line: str):
565565
if "--" in annotation:
566566
stereotypes.append(annotation.replace("-", "").strip())
567567
elif ":" in annotation:
568-
tagged_values.append(annotation.strip())
568+
tagged_values.append(annotation.replace("\\", "").strip())
569569

570570
return name, stereotypes, tagged_values
571571

@@ -579,12 +579,12 @@ def parse_flow_plantuml(line: str):
579579
sender = line.split("->")[0].strip()
580580
receiver = line.split("->")[1].split("[")[0].strip()
581581

582-
annotations = line.split("label = ")[1].split("]")
582+
annotations = line.split("label = ")[1].split("]")[0].split("\\n")
583583
for annotation in annotations:
584584
if "--" in annotation:
585585
stereotypes.append(annotation.replace("-", "").replace("\"", "").replace("\\n", "").strip())
586586
elif ":" in annotation:
587-
tagged_values.append(annotation.strip())
587+
tagged_values.append(annotation.replace("\\", "").strip())
588588

589589
return sender, receiver, stereotypes, tagged_values
590590

0 commit comments

Comments
 (0)