widget props: css: remove new lines to allow multiline anywhere in css

This commit is contained in:
jean-emmanuel 2018-02-06 22:26:58 +01:00
parent 7a38def07b
commit 52f33892a1

View file

@ -121,6 +121,7 @@ var Parser = class Parser {
var css = ';' + widgetInner.getProp('css'),
scopedCss = ''
css = css.replace('\n', ' ')
// parse scoped css
css = css.replace(/[;\}\s]*([^;\{]*\{[^\}]*\})/g, (m)=>{
m = m.replace(/^[;\}\s]*/,'')