comparison 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
comparison
equal deleted inserted replaced
12813:13fdef670c43 12814:58bc5024805d
133 ui.write("::\n\n") 133 ui.write("::\n\n")
134 synopsislines = d['synopsis'].splitlines() 134 synopsislines = d['synopsis'].splitlines()
135 for line in synopsislines: 135 for line in synopsislines:
136 # some commands (such as rebase) have a multi-line 136 # some commands (such as rebase) have a multi-line
137 # synopsis 137 # synopsis
138 ui.write(" %s\n" % line.replace("hg ","", 1)) 138 ui.write(" %s\n" % line)
139 ui.write('\n') 139 ui.write('\n')
140 # description 140 # description
141 ui.write("%s\n\n" % d['desc'][1]) 141 ui.write("%s\n\n" % d['desc'][1])
142 # options 142 # options
143 opt_output = list(d['opts']) 143 opt_output = list(d['opts'])