changeset 20655 | 37f3be9d1541 |
parent 20081 | 93f9d11603d8 |
child 20689 | 401f9b661a2d |
--- a/doc/gendoc.py Wed Feb 19 17:32:21 2014 +0100 +++ b/doc/gendoc.py Thu Feb 20 09:17:22 2014 +0100 @@ -50,6 +50,9 @@ allopts[-1] += " <%s[+]>" % optlabel elif (default is not None) and not isinstance(default, bool): allopts[-1] += " <%s>" % optlabel + if '\n' in desc: + # only remove line breaks and indentation + desc = ' '.join(l.lstrip() for l in desc.split('\n')) desc += default and _(" (default: %s)") % default or "" yield (", ".join(allopts), desc)