summaryrefslogtreecommitdiff
path: root/macro.py
diff options
context:
space:
mode:
Diffstat (limited to 'macro.py')
-rwxr-xr-xmacro.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/macro.py b/macro.py
index 45b06cd..957c7af 100755
--- a/macro.py
+++ b/macro.py
@@ -103,6 +103,12 @@ class Macro:
if body.pop(0) != '':
raise Exception("%s: malformed license section" % filePath)
body = collapseText(body)
+ elif key == "obsolete macro":
+ key = "obsolete"
+ if '' in body:
+ raise Exception("%s: malformed obsoleted section" % filePath)
+ elif key == "description":
+ body = collapseText(body)
else:
raise Exception("%s: unknown section %r in macro" % (filePath, key))
self.__dict__[key] = body