[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:
Martin Trigaux 2015-07-07 15:36:15 +02:00
parent 9fa7624e25
commit 3add4f665c
1 changed files with 1 additions and 1 deletions

View File

@ -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