svghmi/widget_list.ysl2
branchsvghmi
changeset 3185 9038655c1b18
parent 3175 b2ba6eeb61ec
child 3232 7bdb766c2a4d
--- a/svghmi/widget_list.ysl2	Thu Mar 11 09:13:51 2021 +0100
+++ b/svghmi/widget_list.ysl2	Thu Mar 11 10:35:23 2021 +0100
@@ -13,13 +13,7 @@
     param "hmi_element";
     |     styles: {
     foreach "$hmi_element/*[@inkscape:label]" {
-        const "text", "func:refered_elements(.)[self::svg:text][1]";
-        const "tspan", "$text/svg:tspan[1]";
-        const "style" choose {
-            when "$text/@style and $tspan/@style" > «$text/@style»;«$tspan/@style»
-            otherwise > «$text/@style»«$tspan/@style»
-
-        }
+        const "style", "func:refered_elements(.)[self::svg:text]/@style";
     |         «@inkscape:label»: "«$style»",
     }
     |     },