##// END OF EJS Templates
rst: fix detection of single-row tables...
Matt Mackall -
r15192:3834ca04 default
parent child Browse files
Show More
@@ -2768,6 +2768,7 b' def help_(ui, name=None, unknowncmd=Fals'
2768 data.append((so, lo, desc))
2768 data.append((so, lo, desc))
2769
2769
2770 rst = minirst.maketable(data, 1)
2770 rst = minirst.maketable(data, 1)
2771
2771 if multioccur:
2772 if multioccur:
2772 rst += _("\n[+] marked option can be specified multiple times")
2773 rst += _("\n[+] marked option can be specified multiple times")
2773
2774
@@ -262,7 +262,7 b' def findtables(blocks):'
262 # x y z
262 # x y z
263 # === ==== ===
263 # === ==== ===
264 if (block['type'] == 'paragraph' and
264 if (block['type'] == 'paragraph' and
265 len(block['lines']) > 4 and
265 len(block['lines']) > 2 and
266 _tablere.match(block['lines'][0]) and
266 _tablere.match(block['lines'][0]) and
267 block['lines'][0] == block['lines'][-1]):
267 block['lines'][0] == block['lines'][-1]):
268 block['type'] = 'table'
268 block['type'] = 'table'
General Comments 0
You need to be logged in to leave comments. Login now