summaryrefslogtreecommitdiff
path: root/docutils
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2009-09-28 10:59:45 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2009-09-28 10:59:45 +0000
commitb460356b048aa9697c303b1b7d755c33433e37cd (patch)
tree378d1e65f8a9e016ee033e8c6fed3203a4bd79ad /docutils
parentd1a332cc00a1b10df4c2b8fa6efdd3ca79dbf763 (diff)
downloaddocutils-b460356b048aa9697c303b1b7d755c33433e37cd.tar.gz
Beautify LaTeX test output (start ToC on a new page)
As the test output is also a show-case for Docutils, we should make it nice (if easily possible). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@6146 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.tex12
-rw-r--r--docutils/test/functional/expected/standalone_rst_pseudoxml.txt12
-rw-r--r--docutils/test/functional/input/data/standard.txt4
4 files changed, 22 insertions, 16 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html
index ceef865fc..8c2b62610 100644
--- a/docutils/test/functional/expected/standalone_rst_html4css1.html
+++ b/docutils/test/functional/expected/standalone_rst_html4css1.html
@@ -1014,19 +1014,19 @@ section, &quot;Docutils System Messages&quot;:</p>
<div class="system-messages section">
<h1>Docutils System Messages</h1>
<div class="system-message" id="id23">
-<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 100); <em><a href="#id24">backlink</a></em></p>
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 104); <em><a href="#id24">backlink</a></em></p>
Undefined substitution referenced: &quot;problematic&quot;.</div>
<div class="system-message" id="id80">
-<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/standalone_rst_html4css1.txt</tt>, line 359); <em><a href="#id81">backlink</a></em></p>
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/standalone_rst_html4css1.txt</tt>, line 363); <em><a href="#id81">backlink</a></em></p>
Unknown target name: &quot;5&quot;.</div>
<div class="system-message" id="id82">
-<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 368); <em><a href="#id83">backlink</a></em></p>
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 372); <em><a href="#id83">backlink</a></em></p>
Unknown target name: &quot;nonexistent&quot;.</div>
<div class="system-message" id="id84">
-<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 395); <em><a href="#id85">backlink</a></em></p>
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 399); <em><a href="#id85">backlink</a></em></p>
Unknown target name: &quot;hyperlink reference without a target&quot;.</div>
<div class="system-message" id="id86">
-<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 408); <em><a href="#id87">backlink</a></em></p>
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 412); <em><a href="#id87">backlink</a></em></p>
Duplicate target name, cannot be used as a unique reference: &quot;duplicate target names&quot;.</div>
</div>
</div>
diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex
index 41388901d..4110dffae 100644
--- a/docutils/test/functional/expected/standalone_rst_latex.tex
+++ b/docutils/test/functional/expected/standalone_rst_latex.tex
@@ -260,7 +260,7 @@ reStructuredText construct.
% They are transformed from section titles after parsing.
% bibliographic fields (which also require a transform):
-
+\pagebreak[4] % start ToC on new page
\phantomsection\label{table-of-contents}
\pdfbookmark[1]{Table of Contents}{table-of-contents}
\DUtitle[contents]{Table of Contents}
@@ -2068,7 +2068,7 @@ section, ``Docutils System Messages'':
\DUtitle[system-message]{system-message}
\raisebox{1em}{\hypertarget{id24}{}}
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~100
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~104
\hyperlink{id25}{
Undefined substitution referenced: ``problematic''.
@@ -2078,7 +2078,7 @@ Undefined substitution referenced: ``problematic''.
\DUtitle[system-message]{system-message}
\raisebox{1em}{\hypertarget{id86}{}}
-{\color{red}ERROR/3} in \texttt{functional/input/standalone\_rst\_latex.txt}, line~359
+{\color{red}ERROR/3} in \texttt{functional/input/standalone\_rst\_latex.txt}, line~363
\hyperlink{id87}{
Unknown target name: ``5''.
@@ -2088,7 +2088,7 @@ Unknown target name: ``5''.
\DUtitle[system-message]{system-message}
\raisebox{1em}{\hypertarget{id88}{}}
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~368
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~372
\hyperlink{id89}{
Unknown target name: ``nonexistent''.
@@ -2098,7 +2098,7 @@ Unknown target name: ``nonexistent''.
\DUtitle[system-message]{system-message}
\raisebox{1em}{\hypertarget{id90}{}}
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~395
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~399
\hyperlink{id91}{
Unknown target name: ``hyperlink reference without a target''.
@@ -2108,7 +2108,7 @@ Unknown target name: ``hyperlink reference without a target''.
\DUtitle[system-message]{system-message}
\raisebox{1em}{\hypertarget{id92}{}}
-{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~408
+{\color{red}ERROR/3} in \texttt{functional/input/data/standard.txt}, line~412
\hyperlink{id93}{
Duplicate target name, cannot be used as a unique reference: ``duplicate target names''.
diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
index 3d7fac67f..21c681e01 100644
--- a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
+++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
@@ -85,6 +85,8 @@
bibliographic fields (which also require a transform):
<meta content="reStructuredText, test, parser" name="keywords">
<meta content="A test document, containing at least one example of each reStructuredText construct." lang="en" name="description">
+ <raw format="latex" xml:space="preserve">
+ \pagebreak[4] % start ToC on new page
<topic classes="contents" ids="table-of-contents" names="table\ of\ contents">
<title>
Table of Contents
@@ -1873,18 +1875,18 @@
<section classes="system-messages">
<title>
Docutils System Messages
- <system_message backrefs="id24" ids="id23" level="3" line="100" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id24" ids="id23" level="3" line="104" source="functional/input/data/standard.txt" type="ERROR">
<paragraph>
Undefined substitution referenced: "problematic".
- <system_message backrefs="id80" ids="id79" level="3" line="359" source="functional/input/standalone_rst_pseudoxml.txt" type="ERROR">
+ <system_message backrefs="id80" ids="id79" level="3" line="363" source="functional/input/standalone_rst_pseudoxml.txt" type="ERROR">
<paragraph>
Unknown target name: "5".
- <system_message backrefs="id82" ids="id81" level="3" line="368" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id82" ids="id81" level="3" line="372" source="functional/input/data/standard.txt" type="ERROR">
<paragraph>
Unknown target name: "nonexistent".
- <system_message backrefs="id84" ids="id83" level="3" line="395" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id84" ids="id83" level="3" line="399" source="functional/input/data/standard.txt" type="ERROR">
<paragraph>
Unknown target name: "hyperlink reference without a target".
- <system_message backrefs="id86" ids="id85" level="3" line="408" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id86" ids="id85" level="3" line="412" source="functional/input/data/standard.txt" type="ERROR">
<paragraph>
Duplicate target name, cannot be used as a unique reference: "duplicate target names".
diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt
index 02e77ad48..5b099a1ac 100644
--- a/docutils/test/functional/input/data/standard.txt
+++ b/docutils/test/functional/input/data/standard.txt
@@ -56,6 +56,10 @@
:description lang=en: A test document, containing at least one
example of each reStructuredText construct.
+.. raw:: latex
+
+ \pagebreak[4] % start ToC on new page
+
.. contents:: Table of Contents
.. section-numbering::