author | Alexander Solovyov <piranha@piranha.org.ua> |
Mon, 01 Jun 2009 18:11:00 +0300 | |
changeset 3 | 5ffb3f9e84e0 |
parent 2 | 0b61a739804a |
child 4 | 0a8204aeaa4b |
fancyopts.py | file | annotate | diff | comparison | revisions |
--- a/fancyopts.py Mon Jun 01 18:10:34 2009 +0300 +++ b/fancyopts.py Mon Jun 01 18:11:00 2009 +0300 @@ -58,7 +58,7 @@ for first, second in output: if second: # wrap description at 70 chars - second = textwrap.wrap(second, width=70 - opts_len - 3) + second = textwrap.wrap(second, width=(70 - opts_len - 3)) pad = '\n' + ' ' * (opts_len + 3) yield ' %-*s %s\n' % (opts_len, first, pad.join(second)) else: