From 1043ffced1f0767e4bb46cd910c9e5e4ffeeb618 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Thu, 22 Aug 2024 00:18:45 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20display=20SVG=20symbols=20direc?= =?UTF-8?q?tly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Related to #2234. --- weasyprint/svg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weasyprint/svg/__init__.py b/weasyprint/svg/__init__.py index 9501a48af..8d9b71f03 100644 --- a/weasyprint/svg/__init__.py +++ b/weasyprint/svg/__init__.py @@ -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