Skip to content

Commit

Permalink
Merge pull request #19 from evtn/dev
Browse files Browse the repository at this point in the history
fix: now xml_parse actually doesn't break on comments (i hate lxml)
  • Loading branch information
evtn authored May 4, 2024
2 parents 77e6cbb + 475cfcc commit d38c081
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "soda-svg"
packages = [{include = "soda"}]
version = "2.0.0"
version = "2.0.1"
description = "Fast SVG generation tool"
authors = ["Dmitry Gritsenko <soda@evtn.ru>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion soda/xml_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def process_children(element: etree._Element) -> Iterable[Tag]:


def element_to_tag(element: etree._Element) -> Tag:
if isinstance(element.tag, etree._Comment):
if not isinstance(element.tag, str):
return XMLComment(element.tag.text)

tag_name = element.tag.split("}")[-1]
Expand Down

0 comments on commit d38c081

Please sign in to comment.