Skip to content

Commit

Permalink
fix #1171
Browse files Browse the repository at this point in the history
Replace invalid SVG tag "def" by "defs".
  • Loading branch information
mozman committed Sep 23, 2024
1 parent d3247bb commit 83f5254
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions notes/pages/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- BUGFIX: `ezdxf.render.mline.virtual_entities()` function crashes
- {{issue 1167}}
- contributed by #Kaapp
- BUGFIX: replace invalid SVG tag `<def>` by `<defs>`
- {{issue 1171}}
- ## Version 1.3.3 - 2024-08-13
- ((65ed4f6c-edc8-4390-880c-c604a3fa5ec0))
- NEW: improve block section loading procedure
Expand Down
2 changes: 1 addition & 1 deletion src/ezdxf/addons/drawing/svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def __init__(self, page: layout.Page, settings: layout.Settings) -> None:
height=f"{page.height_in_mm:g}mm",
viewBox=f"0 0 {view_box_width} {view_box_height}",
)
self.styles = Styles(ET.SubElement(self.root, "def"))
self.styles = Styles(ET.SubElement(self.root, "defs"))
self.background = ET.SubElement(
self.root,
"rect",
Expand Down

0 comments on commit 83f5254

Please sign in to comment.