Changeset 0ef3a1435b17…
Parent 5da11365b8d9…
by
Changes to one file · Browse files at 0ef3a1435b17 Showing diff from parent 5da11365b8d9 Diff from another changeset...
@@ -571,7 +571,9 @@ commands = cmds[f].replace("|",", ")
ui.write(" %s:\n %s\n"%(commands, h[f]))
else:
- ui.write(' %-*s %s\n' % (m, f, util.wrap(h[f], m + 4)))
+ ui.write('%s\n' % (util.wrap(h[f],
+ initindent=' %-*s ' % (m, f),
+ hangindent=' ' * (m + 4))))
if not ui.quiet:
addglobalopts(True)
@@ -638,7 +640,11 @@ opts_len = max([len(line[0]) for line in opt_output if line[1]] or [0])
for first, second in opt_output:
if second:
- ui.write(" %-*s %s\n" % (opts_len, first, second))
+ initindent = ' %-*s ' % (opts_len, first)
+ hangindent = ' ' * (opts_len + 3)
+ ui.write('%s\n' % (util.wrap(second,
+ initindent=initindent,
+ hangindent=hangindent)))
else:
ui.write("%s\n" % first)
|
Loading...