# HG changeset patch # User Matt Mackall # Date 2011-10-02 18:13:46 # Node ID 3834ca04664a7063dc3c24bcc478a4146bc2e35a # Parent 6dc67dced8c122f6139ae20ccdc03a6b11e8b765 rst: fix detection of single-row tables This fixes option lists for commands with only an --mq option. diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2768,6 +2768,7 @@ def help_(ui, name=None, unknowncmd=Fals data.append((so, lo, desc)) rst = minirst.maketable(data, 1) + if multioccur: rst += _("\n[+] marked option can be specified multiple times") diff --git a/mercurial/minirst.py b/mercurial/minirst.py --- a/mercurial/minirst.py +++ b/mercurial/minirst.py @@ -262,7 +262,7 @@ def findtables(blocks): # x y z # === ==== === if (block['type'] == 'paragraph' and - len(block['lines']) > 4 and + len(block['lines']) > 2 and _tablere.match(block['lines'][0]) and block['lines'][0] == block['lines'][-1]): block['type'] = 'table'