Mercurial > public > mercurial-scm > hg-stable
diff tests/test-minirst.py @ 9736:26d3ade60fa6
test-minirst: don't test on invalid reST input
Input such as
Only the
left-most line
(this line!)
is significant
for the indentation
is not valid reStructuredText: the first line starts a block quote,
but then the second line is not allowed to be unindented.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 05 Nov 2009 21:53:22 +0100 |
parents | e48a48b754d3 |
children | 75cff8f12910 |
line wrap: on
line diff
--- a/tests/test-minirst.py Thu Nov 05 21:30:50 2009 +0100 +++ b/tests/test-minirst.py Thu Nov 05 21:53:22 2009 +0100 @@ -12,28 +12,13 @@ paragraphs = """ This is some text in the first paragraph. - An indented paragraph - with just two lines. - - -The third paragraph. It is followed by some -random lines with spurious spaces. + A small indented paragraph. + It is followed by some lines + containing random whitespace. - - -No indention - here, despite -the uneven left - margin. - - Only the - left-most line - (this line!) - is significant - for the indentation - +The third and final paragraph. """ debugformat('paragraphs', paragraphs, 60)