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
--- 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']: