Mercurial > hg-stable
changeset 19994:fc251b1a1dad stable
minirst: find admonitions before pruning comments and adding margins
Lines with only a directive are not deleted anymore because they are detected
before comments are deleted by prunecomments().
addmargins() will be adapted later.
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Mon, 04 Nov 2013 10:23:06 +0100 |
parents | 03ec85b9cfc4 |
children | 0f6e360b14f2 |
files | mercurial/minirst.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/minirst.py Mon Nov 04 10:23:06 2013 +0100 +++ b/mercurial/minirst.py Mon Nov 04 10:23:06 2013 +0100 @@ -633,9 +633,9 @@ blocks = splitparagraphs(blocks) blocks = updatefieldlists(blocks) blocks = updateoptionlists(blocks) + blocks = findadmonitions(blocks) blocks = addmargins(blocks) blocks = prunecomments(blocks) - blocks = findadmonitions(blocks) return blocks, pruned def formatblocks(blocks, width):