[FIX] tools: accept multilines on_change
Allow to write on_change on several lines (accepted by view parser but was not by yaml parser, making false positive at 595216b)
This commit is contained in:
parent
9fa7624e25
commit
3add4f665c
|
@ -427,7 +427,7 @@ class YamlInterpreter(object):
|
|||
|
||||
if not el.attrib.get('on_change', False):
|
||||
continue
|
||||
match = re.match("([a-z_1-9A-Z]+)\((.*)\)", el.attrib['on_change'])
|
||||
match = re.match("([a-z_1-9A-Z]+)\((.*)\)", el.attrib['on_change'], re.DOTALL)
|
||||
assert match, "Unable to parse the on_change '%s'!" % (el.attrib['on_change'], )
|
||||
|
||||
# creating the context
|
||||
|
|
Loading…
Reference in New Issue