changeset 15036 | bb96e12a3242 |
parent 15015 | ee6988aea74e |
child 15037 | df47381b41d6 |
--- a/mercurial/minirst.py Thu Aug 11 14:34:03 2011 -0500 +++ b/mercurial/minirst.py Thu Aug 11 22:05:31 2011 -0500 @@ -39,7 +39,7 @@ has an 'indent' field and a 'lines' field. """ blocks = [] - for b in _blockre.split(text.strip()): + for b in _blockre.split(text.lstrip('\n').rstrip()): lines = b.splitlines() indent = min((len(l) - len(l.lstrip())) for l in lines) lines = [l[indent:] for l in lines]