Skip to content

Commit

Permalink
Update drawio_xml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Semprini authored Oct 1, 2024
1 parent 5c96367 commit 849e430
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mdg/parse/drawio_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ def enumeration_parse(package: UMLPackage, element, root) -> Optional[UMLEnumera
def attr_parse(parent: UMLClass, element, root, stereotypes) -> UMLAttribute:
a = element.get("value")
tree = html.fromstring(a)
node = tree.xpath("//div")
value = ''.join(node[0].itertext()).replace(" ", " ")
value = tree.text_content().replace(" ", " ")

dq = []
if "{dq_even}" in value:
Expand Down

0 comments on commit 849e430

Please sign in to comment.