summaryrefslogtreecommitdiff
path: root/macro.py
diff options
context:
space:
mode:
Diffstat (limited to 'macro.py')
-rwxr-xr-xmacro.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/macro.py b/macro.py
index 69f838c..ca87057 100755
--- a/macro.py
+++ b/macro.py
@@ -75,7 +75,8 @@ class Macro:
url = "http://www.nongnu.org/autoconf-archive/%s" % (self.name + ".html")
lineLen = max(75,len(url) + 2)
separator = '=' * lineLen
- self.m4header = "# %s\n"*3 % (separator, url.center(lineLen), separator)
+ padding = ' ' * ((lineLen - len(url)) / 2)
+ self.m4header = "# %s\n"*3 % (separator, padding + url, separator)
# parse each section in the remaining list
for (key, body) in splitSections(header):
# drop empty lines at beginning and end of body