From e18befbb5e968029e6f9c8d053597abaaf1ad26c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 5 Jun 2009 00:00:17 +0200 Subject: macro.py: fixed computation of padding for the URL line in the m4 file --- macro.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'macro.py') 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 -- cgit v1.2.1