From a4b2570a93d45e49aed76f00ee0e713396cf490f Mon Sep 17 00:00:00 2001 From: Mario Voigt Date: Tue, 6 Apr 2021 15:29:54 +0200 Subject: [PATCH] some bugfix in styles to layer, introduces by new hairlines --- extensions/fablabchemnitz/styles_to_layers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/fablabchemnitz/styles_to_layers.py b/extensions/fablabchemnitz/styles_to_layers.py index 02ca4b3b..a106e59c 100644 --- a/extensions/fablabchemnitz/styles_to_layers.py +++ b/extensions/fablabchemnitz/styles_to_layers.py @@ -105,7 +105,7 @@ class StylesToLayers(inkex.EffectExtension): if style and element.tag != inkex.addNS('stop','svg') and element.tag != inkex.addNS('tspan','svg'): if self.options.separateby == "stroke": - stroke = re.search('^stroke:(.*?)(;|$)', style) #we use ^ to exlucde "-inkscape-stroke" which can be "hairline" since InkScape 1.1+ + stroke = re.search('(;|^)stroke:(.*?)(;|$)', style) if stroke is not None: stroke = stroke[0] stroke_value = stroke.split("stroke:")[1].split(";")[0]