summaryrefslogtreecommitdiff
path: root/docutils
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-20 17:35:12 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-20 17:35:12 +0000
commit319f7c62265f1c810d7c163d7b83fa638e5835e9 (patch)
tree881cc7790873d937697522336c378092cd85fef6 /docutils
parent29c1bdf75a65f0a7a5988c8a08e54c567fe5c63a (diff)
downloaddocutils-319f7c62265f1c810d7c163d7b83fa638e5835e9.tar.gz
added functional test for nested compounds
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2742 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
-rw-r--r--docutils/test/functional/expected/standalone_rst_html4css1.html10
-rw-r--r--docutils/test/functional/expected/standalone_rst_latex.tex11
-rw-r--r--docutils/test/functional/input/data/standard.txt15
3 files changed, 36 insertions, 0 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html
index 973db96aa..6011b8586 100644
--- a/docutils/test/functional/expected/standalone_rst_html4css1.html
+++ b/docutils/test/functional/expected/standalone_rst_html4css1.html
@@ -601,6 +601,16 @@ This one starts with a literal block.
</pre>
<p>Compound 4, a paragraph.</p>
</div>
+<p>Now something <em>really</em> perverted -- a nested compound block. In
+LaTeX, the following paragraphs should all be first-line indented:</p>
+<div class="compound">
+<p>Compound 5, block 1 (a paragraph).</p>
+<div class="compound">
+<p>Compound 6, block 2 in compound 5.</p>
+<p>Compound 6, another paragraph.</p>
+</div>
+<p>Compound 5, block 3 (a paragraph).</p>
+</div>
</div>
</div>
<div class="section" id="substitution-definitions">
diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex
index ce0d190aa..e003983d3 100644
--- a/docutils/test/functional/expected/standalone_rst_latex.tex
+++ b/docutils/test/functional/expected/standalone_rst_latex.tex
@@ -980,6 +980,17 @@ This~one~starts~with~a~literal~block.
}\end{quote}
Compound 4, a paragraph.
+Now something \emph{really} perverted -- a nested compound block. In
+LaTeX, the following paragraphs should all be first-line indented:
+
+Compound 5, block 1 (a paragraph).
+
+Compound 6, block 2 in compound 5.
+
+Compound 6, another paragraph.
+
+Compound 5, block 3 (a paragraph).
+
%___________________________________________________________________________
diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt
index 26351be8a..e182a9d91 100644
--- a/docutils/test/functional/input/data/standard.txt
+++ b/docutils/test/functional/input/data/standard.txt
@@ -487,6 +487,21 @@ Another compound statement:
Compound 4, a paragraph.
+Now something *really* perverted -- a nested compound block. In
+LaTeX, the following paragraphs should all be first-line indented:
+
+.. compound::
+
+ Compound 5, block 1 (a paragraph).
+
+ .. compound::
+
+ Compound 6, block 2 in compound 5.
+
+ Compound 6, another paragraph.
+
+ Compound 5, block 3 (a paragraph).
+
Substitution Definitions
------------------------