Show More
@@ -47,7 +47,7 b' def listexts(header, exts, maxlength):' | |||||
47 | result = '\n%s\n\n' % header |
|
47 | result = '\n%s\n\n' % header | |
48 | for name, desc in sorted(exts.iteritems()): |
|
48 | for name, desc in sorted(exts.iteritems()): | |
49 | # wrap desc at 70 characters, just like the main help texts |
|
49 | # wrap desc at 70 characters, just like the main help texts | |
50 |
desc = textwrap.wrap(desc, width=7 |
|
50 | desc = textwrap.wrap(desc, width=78 - maxlength - 4) | |
51 | pad = '\n' + ' ' * (maxlength + 4) |
|
51 | pad = '\n' + ' ' * (maxlength + 4) | |
52 | result += ' %s %s\n' % (name.ljust(maxlength), |
|
52 | result += ' %s %s\n' % (name.ljust(maxlength), | |
53 | pad.join(desc)) |
|
53 | pad.join(desc)) |
General Comments 0
You need to be logged in to leave comments.
Login now