# HG changeset patch # User Simon Heimberg # Date 1383556986 -3600 # Node ID 0f6e360b14f2dcc28c215949dea28badfbb0c96b # Parent fc251b1a1dad8cd72d4322c4c632a0cf4901d08b minirst: do not add a 2nd empty paragraph This does not add a separating block after a separated note directive. .. note:: text is formatted to Note: text diff -r fc251b1a1dad -r 0f6e360b14f2 mercurial/minirst.py --- a/mercurial/minirst.py Mon Nov 04 10:23:06 2013 +0100 +++ b/mercurial/minirst.py Mon Nov 04 10:23:06 2013 +0100 @@ -381,6 +381,9 @@ if (blocks[i]['type'] == blocks[i - 1]['type'] and blocks[i]['type'] in ('bullet', 'option', 'field')): i += 1 + elif not blocks[i - 1]['lines']: + # no lines in previous block, do not seperate + i += 1 else: blocks.insert(i, dict(lines=[''], indent=0, type='margin')) i += 2