summaryrefslogtreecommitdiff
path: root/macro.py
diff options
context:
space:
mode:
Diffstat (limited to 'macro.py')
-rwxr-xr-xmacro.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/macro.py b/macro.py
index 40262cb..ca697da 100755
--- a/macro.py
+++ b/macro.py
@@ -65,6 +65,8 @@ class Macro:
# header and body are separated by an empty line.
(header,body) = loadFile(filePath).split("\n\n", 1)
self.body = body.split('\n')
+ # headers may not contain tab characters
+ assert not ('\t' in header)
# drop initial header (if present)
header = re.sub(r"^\n*# =+\n#[^\n]*\n# =+\n(#\n)+", '', header, 1)
# split buffer into lines and drop initial "# " prefix in the process