Skip to content

Commit

Permalink
Don’t display SVG symbols directly
Browse files Browse the repository at this point in the history
Related to #2234.
  • Loading branch information
liZe committed Aug 21, 2024
1 parent bf29632 commit 1043ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weasyprint/svg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,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 == 'defs':
if node.tag in ('defs', 'symbol'):
return

# Update font size
Expand Down

0 comments on commit 1043ffc

Please sign in to comment.