gendoc: do not wrap encoded string
authorMartin Geisler <mg@lazybytes.net>
Sun, 27 Sep 2009 10:04:51 +0200
changeset 9484 c96d73dd956d
parent 9483 29d2a7e3a88b
child 9485 7d6ac5d7917c
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
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']: