branch | svghmi |
changeset 3022 | f6fe42b7ce60 |
parent 3008 | dabad70db1bf |
child 3035 | d1fc8c55c1d3 |
--- a/svghmi/widget_display.ysl2 Sat Aug 08 15:53:28 2020 +0200 +++ b/svghmi/widget_display.ysl2 Tue Aug 11 14:37:33 2020 +0200 @@ -18,7 +18,14 @@ if "$hmi_element[not(self::svg:text)]" error > Display Widget id="«$hmi_element/@id»" is not a svg::text element - | fields: [], + const "field_initializer" foreach "path" { + choose{ + when "@type='HMI_STRING'" > "" + otherwise 0 + } + if "position()!=last()" > , + } + | fields: [«$field_initializer»], } emit "preamble:display"