# HG changeset patch # User Martin Geisler # Date 1254038691 -7200 # Node ID c96d73dd956d24a43bb6da317e180add6f89919f # Parent 29d2a7e3a88b6047f4578e4f7f47c130cfeadf7a gendoc: do not wrap encoded string - it breaks multi-byte characters - it is not needed since Docutils will take care of wrapping the strings as necessary diff -r 29d2a7e3a88b -r c96d73dd956d doc/gendoc.py --- a/doc/gendoc.py Sun Sep 27 09:39:57 2009 +0200 +++ b/doc/gendoc.py Sun Sep 27 10:04:51 2009 +0200 @@ -1,4 +1,4 @@ -import os, sys, textwrap +import os, sys # import from the live mercurial repo sys.path.insert(0, "..") # fall back to pure modules if required C extensions are not available @@ -92,9 +92,7 @@ s = "%-*s %s" % (opts_len, optstr, desc) else: s = optstr - s = textwrap.fill(s, initial_indent=4 * " ", - subsequent_indent=(6 + opts_len) * " ") - ui.write("%s\n" % s) + ui.write(" %s\n" % s) ui.write("\n") # aliases if d['aliases']: