diff doc/gendoc.py @ 12814:58bc5024805d stable

gendoc: do not strip 'hg ' from synopsis This was an old left-over from when the synopsis line was used as a header. We now have the command name by itself as the header and the synopsis as a literal block immediately after..
author Martin Geisler <mg@lazybytes.net>
date Sat, 23 Oct 2010 00:18:10 +0200
parents 13fdef670c43
children 6b8d2ee24ce2
line wrap: on
line diff
--- a/doc/gendoc.py	Sat Oct 23 00:11:39 2010 +0200
+++ b/doc/gendoc.py	Sat Oct 23 00:18:10 2010 +0200
@@ -135,7 +135,7 @@
         for line in synopsislines:
             # some commands (such as rebase) have a multi-line
             # synopsis
-            ui.write("   %s\n" % line.replace("hg ","", 1))
+            ui.write("   %s\n" % line)
         ui.write('\n')
         # description
         ui.write("%s\n\n" % d['desc'][1])