From: <st...@us...> - 2007-03-05 08:45:14
|
Author: strank Date: 2007-03-05 09:45:01 +0100 (Mon, 05 Mar 2007) New Revision: 4998 Added: trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/include12.txt Modified: trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/test_include.py Log: first test for :after: and :until: options for the include directive Added: trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/include12.txt =================================================================== --- trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/include12.txt 2007-03-05 08:15:30 UTC (rev 4997) +++ trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/include12.txt 2007-03-05 08:45:01 UTC (rev 4998) @@ -0,0 +1,9 @@ +In include12.txt (but before start here) + +.. start here + +In include12.txt (after start here, before stop here) + +.. stop here + +In include12.txt (after stop here) Property changes on: trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/include12.txt ___________________________________________________________________ Name: svn:keywords + Author Date Id Revision Name: svn:eol-style + native Modified: trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/test_include.py =================================================================== --- trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/test_include.py 2007-03-05 08:15:30 UTC (rev 4997) +++ trunk/sandbox/include-before-after/test/test_parsers/test_rst/test_directives/test_include.py 2007-03-05 08:45:01 UTC (rev 4998) @@ -29,6 +29,7 @@ include10rel = DocutilsTestSupport.utils.relative_path(None, include10) include11 = os.path.join(mydir, 'include 11.txt') include11rel = DocutilsTestSupport.utils.relative_path(None, include11) +include12 = os.path.join(mydir, 'include12.txt') utf_16_file = os.path.join(mydir, 'utf-16.csv') utf_16_file_rel = DocutilsTestSupport.utils.relative_path(None, utf_16_file) nonexistent = os.path.join(os.path.dirname(states.__file__), @@ -390,6 +391,26 @@ <literal_block xml:space="preserve"> .. include:: <nonexistent> """ % nonexistent_rel], +["""\ +Include before-after Test +========================= + +.. include:: %s + :after: .. start here + :until: .. stop here + +A paragraph. +""" % include12, +"""\ +<document source="test data"> + <section ids="include-before-after-test" names="include\ before-after\ test"> + <title> + Include before-after Test + <paragraph> + In include12.txt (after start here, before stop here) + <paragraph> + A paragraph. +"""], ] |