summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmacro.py2
-rwxr-xr-xmacro2m4.py2
2 files changed, 1 insertions, 3 deletions
diff --git a/macro.py b/macro.py
index 91b2dfa..0d7d158 100755
--- a/macro.py
+++ b/macro.py
@@ -97,8 +97,6 @@ class Macro:
raise Exception("%s: malformed license section" % filePath)
body = collapseText(body)
elif key == "obsolete macro":
- if '' in body:
- raise Exception("%s: malformed obsoleted section" % filePath)
key = "obsolete"
body = collapseText(body)
elif key == "description":
diff --git a/macro2m4.py b/macro2m4.py
index 3db6ed8..8de7e3a 100755
--- a/macro2m4.py
+++ b/macro2m4.py
@@ -64,7 +64,7 @@ url = "http://www.gnu.org/software/autoconf-archive/%s.html" % m.name
lineLen = max(len(url) + 2, 75)
m.url = "# %s\n# %s\n# %s" % ('=' * lineLen, (' ' * int((lineLen - len(url)) / 2)) + url, '=' * lineLen)
if m.__dict__.get("obsolete"):
- m.obsolete = "# OBSOLETE MACRO\n#\n" + '\n'.join(map(formatParagraph, m.obsolete)) + "\n#\n"
+ m.obsolete = "# OBSOLETE MACRO\n#\n" + '\n#\n'.join(map(formatParagraph, m.obsolete)) + "\n#\n"
else:
m.obsolete = ""
m.synopsis = "\n".join([ "# %s" % l for l in m.synopsis ])