# HG changeset patch # User Martin Geisler # Date 2009-10-20 20:42:49 # Node ID 9d1a480ca6ea62924bea8e254d04c045d27b13ef # Parent a39d8abd899a28bf77e4affe4029580f6c9488cb 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. diff --git a/doc/gendoc.py b/doc/gendoc.py --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -50,7 +50,7 @@ def get_cmd(cmd): s += ' ' + attr[2] else: s = attr[2] - d['synopsis'] = s + d['synopsis'] = s.strip() return d