From 65c775877ed1341076bc26f2efb36cb7f826edcb Mon Sep 17 00:00:00 2001 From: Goffi Date: Tue, 3 Nov 2026 11:58:07 +0100 Subject: [PATCH] tools (common/template): skip empty icon names in `_icon_defs` --- libervia/backend/tools/common/template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libervia/backend/tools/common/template.py b/libervia/backend/tools/common/template.py index ddf7aca4..b9c2f1b7 100644 --- a/libervia/backend/tools/common/template.py +++ b/libervia/backend/tools/common/template.py @@ -1056,6 +1056,8 @@ class Renderer: ) defs_elt = etree.SubElement(svg_elt, "defs") for name in names: + if not name: + continue if "/" in name: raise ValueError("SVG name must not have a `/` in it.") for style_name in ("regular", "brands", "solid"):