diff --git a/Doc/tools/mkackshtml b/Doc/tools/mkackshtml index 36f4d2a9b0c..917b3035f2e 100755 --- a/Doc/tools/mkackshtml +++ b/Doc/tools/mkackshtml @@ -1,6 +1,7 @@ #! /usr/bin/env python # -*- Python -*- +import string import support import sys @@ -11,7 +12,7 @@ def collect(fp): line = fp.readline() if not line: break - line = line.strip() + line = string.strip(line) if line: names.append(line) else: @@ -26,22 +27,24 @@ def main(): options.parse(sys.argv[1:]) names = collect(sys.stdin) percol = (len(names) + options.columns - 1) / options.columns - colnums = [percol*i for i in range(options.columns)] + colnums = [] + for i in range(options.columns): + colnums.append(percol*i) fp = options.get_output_file() - print >>fp, options.get_header().rstrip() - print >>fp, THANKS - print >>fp, '
%s | " % names[i + j] + fp.write("%s | \n" % names[i + j]) except IndexError: - print >>fp, "" - print >>fp, " |