diff --git a/pym/cl_template.py b/pym/cl_template.py index 2bf1ac5..7e378c3 100644 --- a/pym/cl_template.py +++ b/pym/cl_template.py @@ -360,7 +360,8 @@ class fileHeader(_terms): textLines = self.body.splitlines() if textLines: textLine = textLines[0] - rePar = re.compile("\s*#\s*calculate\s+",re.I) + rePar = re.compile(\ + "\s*#\s*calculate\s+\\\\?|\s*#\s*calculate\\\\?$", re.I) reP = rePar.search(textLine) if reP: reL = False @@ -494,7 +495,8 @@ class dirHeader(_terms): flagErrorBody = False if textLines: textLine = textLines[0] - rePar = re.compile("\s*#\s*calculate\s+",re.I) + rePar = re.compile(\ + "\s*#\s*calculate\s+\\\\?|\s*#\s*calculate\\\\?$",re.I) reP = rePar.search(textLine) if reP: reL = False