diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-03-22 13:25:46 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-03-22 13:25:46 +0000 |
commit | c12f45f08b42a00cef2615efd0b5901897e3fced (patch) | |
tree | 561eaaa317a357b7b920f83b986687992e17b022 /test | |
parent | 497d6bc94ccbacc063f069e46f7ae68de89c89f8 (diff) | |
download | docutils-c12f45f08b42a00cef2615efd0b5901897e3fced.tar.gz |
Fix [ 157 ] Line block parsing does not like system message.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7638 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_parsers/test_rst/test_line_blocks.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/test_parsers/test_rst/test_line_blocks.py b/test/test_parsers/test_rst/test_line_blocks.py index 553667279..f9ca0eac3 100755 --- a/test/test_parsers/test_rst/test_line_blocks.py +++ b/test/test_parsers/test_rst/test_line_blocks.py @@ -300,6 +300,29 @@ This is not <line> * is not recognized. """], +["""\ +System messages can appear in place of lines: + +| `uff <test1>`_ +| `uff <test2>`_ +""", +"""\ +<document source="test data"> + <paragraph> + System messages can appear in place of lines: + <line_block> + <line> + <reference name="uff" refuri="test1"> + uff + <target dupnames="uff" ids="uff" refuri="test1"> + <system_message backrefs="id1" level="2" line="3" source="test data" type="WARNING"> + <paragraph> + Duplicate explicit target name: "uff". + <line> + <reference name="uff" refuri="test2"> + uff + <target dupnames="uff" ids="id1" refuri="test2"> +"""], ] |