comparison mercurial/help.py @ 16815:e740746ea557

minirst: generate tables as a list of joined lines
author Olav Reinert <seroton10@gmail.com>
date Fri, 01 Jun 2012 11:58:23 +0200
parents c0b98f436cce
children d10994f1c7a2
comparison
equal deleted inserted replaced
16812:d3b807e673a8 16815:e740746ea557
56 data.append((so, lo, desc)) 56 data.append((so, lo, desc))
57 57
58 rst = minirst.maketable(data, 1) 58 rst = minirst.maketable(data, 1)
59 59
60 if multioccur: 60 if multioccur:
61 rst += _("\n[+] marked option can be specified multiple times\n") 61 rst.append(_("\n[+] marked option can be specified multiple times\n"))
62 62
63 return rst 63 return ''.join(rst)
64 64
65 # list all option lists 65 # list all option lists
66 def opttext(optlist, width, verbose): 66 def opttext(optlist, width, verbose):
67 rst = '' 67 rst = ''
68 if not optlist: 68 if not optlist: