Skip to content
Snippets Groups Projects
Commit 67760737 authored by Tomáš Orviský's avatar Tomáš Orviský
Browse files

Label arrows also on end

parent aaf51d69
Branches
No related merge requests found
...@@ -108,10 +108,15 @@ class PUMLParser(object): ...@@ -108,10 +108,15 @@ class PUMLParser(object):
if text[0] == "<": if text[0] == "<":
edge.arrow_from_source = edge.get_dir() != Direction.LEFT edge.arrow_from_source = edge.get_dir() != Direction.LEFT
text = text[1:] text = text[1:]
elif text[-1] == "<":
edge.arrow_from_source = edge.get_dir() != Direction.LEFT
text = text[:-1]
elif text[0] == ">": elif text[0] == ">":
edge.arrow_from_source = edge.get_dir() == Direction.RIGHT edge.arrow_from_source = edge.get_dir() == Direction.RIGHT
text = text[1:] text = text[1:]
elif text[-1] == ">":
edge.arrow_from_source = edge.get_dir() == Direction.RIGHT
text = text[:-1]
edge.edge_text = text edge.edge_text = text
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment