changeset 9484:c96d73dd956d

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
author Martin Geisler <mg@lazybytes.net>
date Sun, 27 Sep 2009 10:04:51 +0200
parents 29d2a7e3a88b
children 7d6ac5d7917c
files doc/gendoc.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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']: