Mercurial > hg
diff mercurial/commands.py @ 15862:d0f2a89c8cfa
help: fix column alignment in "hg help" output
The output of "hg help" is changed to ensure that the column containing
descriptions of commands, extensions, and other topics is correctly alignmened.
author | Olav Reinert <seroton10@gmail.com> |
---|---|
date | Wed, 11 Jan 2012 18:14:55 +0100 |
parents | 6bed6cc6d0d0 |
children | 7eca9db689d6 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jan 11 18:08:25 2012 +0100 +++ b/mercurial/commands.py Wed Jan 11 18:14:55 2012 +0100 @@ -3155,7 +3155,7 @@ ui.write(" %s:\n %s\n"%(commands, h[f])) else: ui.write('%s\n' % (util.wrap(h[f], textwidth, - initindent=' %-*s ' % (m, f), + initindent=' %-*s ' % (m, f), hangindent=' ' * (m + 4)))) if not name: @@ -3169,7 +3169,7 @@ topics.append((sorted(names, key=len, reverse=True)[0], header)) topics_len = max([len(s[0]) for s in topics]) for t, desc in topics: - ui.write(" %-*s %s\n" % (topics_len, t, desc)) + ui.write(" %-*s %s\n" % (topics_len, t, desc)) optlist = [] addglobalopts(optlist, True)