diff mercurial/minirst.py @ 10936:2853c891ac41

minirst: add margin around definition items This greatly improves the output of 'hg help env'.
author Martin Geisler <mg@lazybytes.net>
date Sun, 18 Apr 2010 15:47:49 +0200
parents e957cc7cbd14
children a9d5943d2a30
line wrap: on
line diff
--- a/mercurial/minirst.py	Fri Apr 16 19:18:20 2010 +0200
+++ b/mercurial/minirst.py	Sun Apr 18 15:47:49 2010 +0200
@@ -261,7 +261,7 @@
     i = 1
     while i < len(blocks):
         if (blocks[i]['type'] == blocks[i - 1]['type'] and
-            blocks[i]['type'] in ('bullet', 'option', 'field', 'definition')):
+            blocks[i]['type'] in ('bullet', 'option', 'field')):
             i += 1
         else:
             blocks.insert(i, dict(lines=[''], indent=0, type='margin'))