document double tags for fill-bg #5719

It seems we lost this comment at some point.
This commit is contained in:
Andrej730
2024-11-08 16:45:23 +05:00
parent 1fa3478a9d
commit a0226eb0a1
@@ -776,6 +776,8 @@ class SvgWriter:
}
def add_fill_bg(self, element: svgwrite.text.Text, copy: bool = True) -> svgwrite.text.Text:
# Useful since tspans and texts do not support "background-color"
# so we just add a filter. Have to do it in a separate tag to avoid blurry image.
if copy:
element = element.copy()
if hasattr(element, "xml"):