comparison doc/gendoc.py @ 9622:9d1a480ca6ea

gendoc: fix synopsis The synopsis is used as an inline literal when generating the manpage. There should not be any whitespace on the inside of the quotation marks in inline literals. Commands with an empty synopsis (such as tags) produces ``tags `` as synopsis, which triggers a warning.
author Martin Geisler <mg@lazybytes.net>
date Tue, 20 Oct 2009 22:42:49 +0200
parents 7d6ac5d7917c
children dd1a95ccbe07
comparison
equal deleted inserted replaced
9621:a39d8abd899a 9622:9d1a480ca6ea
48 if len(attr) > 2: 48 if len(attr) > 2:
49 if not attr[2].startswith('hg'): 49 if not attr[2].startswith('hg'):
50 s += ' ' + attr[2] 50 s += ' ' + attr[2]
51 else: 51 else:
52 s = attr[2] 52 s = attr[2]
53 d['synopsis'] = s 53 d['synopsis'] = s.strip()
54 54
55 return d 55 return d
56 56
57 def show_doc(ui): 57 def show_doc(ui):
58 def section(s): 58 def section(s):