From 8bb00d5595d291193136f7bc22472acc09095bd2 Mon Sep 17 00:00:00 2001 From: Duarte Cordeiro Date: Tue, 16 Sep 2014 15:46:23 +0100 Subject: [PATCH] Corrected fix for #578 --- src/utils/batchprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/batchprocessors.py b/src/utils/batchprocessors.py index 541efc49a8..e6640880f2 100644 --- a/src/utils/batchprocessors.py +++ b/src/utils/batchprocessors.py @@ -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)