Corrected fix for #578

This commit is contained in:
Duarte Cordeiro 2014-09-16 15:46:23 +01:00
parent f35b5e2038
commit 8bb00d5595

View file

@ -330,7 +330,7 @@ class BatchCodeProcessor(object):
def replace_insert(match):
"Map replace entries"
return "\#\n".join(self.parse_file(match.group()))
return "\#\n".join(self.parse_file(match.group(1)))
text = RE_INSERT.sub(replace_insert, text)
#text = re.sub(r"^\#INSERT (.*?)", replace_insert, text, flags=re.MULTILINE)