Skip to content

Commit

Permalink
Display symbol but not its children
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Aug 27, 2024
1 parent 0ed5045 commit d566245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weasyprint/svg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
'mask',
'path',
'pattern',
'symbol',
))


Expand Down Expand Up @@ -390,7 +391,7 @@ def draw(self, stream, concrete_width, concrete_height, base_url,

def draw_node(self, node, font_size, fill_stroke=True):
"""Draw a node."""
if node.tag in ('defs', 'symbol'):
if node.tag == 'defs':
return

# Update font size
Expand Down

0 comments on commit d566245

Please sign in to comment.