Skip to content

Commit

Permalink
Fix test: etree.Element -> SubElement
Browse files Browse the repository at this point in the history
  • Loading branch information
speleo3 committed May 10, 2024
1 parent 971afe2 commit 172ff3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/th2ex.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def th2pref_store_to_xml(root):
def title_node(parent):
title = parent.find(svg_title)
if title is None:
title = etree.Element(svg_title)
title = etree.SubElement(parent, svg_title)
title.text = ""
# if <title> is last child of <text>, Inkscape screws up when
# appending lines and inserts <title> instead of <tspan> elements.
Expand Down

0 comments on commit 172ff3a

Please sign in to comment.