summaryrefslogtreecommitdiff
path: root/docutils/test/functional
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-16 15:00:35 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-10-16 15:00:35 +0000
commitd64e9f17b919280b14797a677ba90be0c8e6bcf1 (patch)
tree4ee0d2e3f59ea653a91a802f7bd567e8522d5a0f /docutils/test/functional
parent01e7c9b36c9acfbdb854080aea13c3aa97e52ccc (diff)
downloaddocutils-d64e9f17b919280b14797a677ba90be0c8e6bcf1.tar.gz
only strip <p>aragraphs in HTML if we don't lose relevant attributes
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2706 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional')
-rw-r--r--docutils/test/functional/expected/standalone_rst_html4css1.html13
-rw-r--r--docutils/test/functional/expected/standalone_rst_latex.tex6
-rw-r--r--docutils/test/functional/input/data/standard.txt8
3 files changed, 23 insertions, 4 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html
index 2b94afa22..ba7c9acf7 100644
--- a/docutils/test/functional/expected/standalone_rst_html4css1.html
+++ b/docutils/test/functional/expected/standalone_rst_html4css1.html
@@ -263,6 +263,11 @@ an unambiguous variant of RFC 2822 fields.</td>
relative to the field marker.</p>
</td>
</tr>
+<tr class="field"><th class="field-name">credits:</th><td class="field-body"><p class="credits first last">This paragraph has the <cite>credits</cite> class set. (This is actually not
+about credits but just for ensuring that the class attribute
+doesn't get stripped away.)</p>
+</td>
+</tr>
</tbody>
</table>
</div>
@@ -766,16 +771,16 @@ section, &quot;Docutils System Messages&quot;:</p>
<p class="system-message-title">System Message: <a name="id20">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 89); <em><a href="#id21">backlink</a></em></p>
Undefined substitution referenced: &quot;problematic&quot;.</div>
<div class="system-message" id="id66">
-<p class="system-message-title">System Message: <a name="id66">ERROR/3</a> (<tt>functional/input/standalone_rst_html4css1.txt</tt>, line 287); <em><a href="#id67">backlink</a></em></p>
+<p class="system-message-title">System Message: <a name="id66">ERROR/3</a> (<tt>functional/input/standalone_rst_html4css1.txt</tt>, line 295); <em><a href="#id67">backlink</a></em></p>
Unknown target name: &quot;5&quot;.</div>
<div class="system-message" id="id68">
-<p class="system-message-title">System Message: <a name="id68">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 296); <em><a href="#id69">backlink</a></em></p>
+<p class="system-message-title">System Message: <a name="id68">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 304); <em><a href="#id69">backlink</a></em></p>
Unknown target name: &quot;nonexistent&quot;.</div>
<div class="system-message" id="id70">
-<p class="system-message-title">System Message: <a name="id70">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 321); <em><a href="#id71">backlink</a></em></p>
+<p class="system-message-title">System Message: <a name="id70">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 329); <em><a href="#id71">backlink</a></em></p>
Unknown target name: &quot;hyperlink reference without a target&quot;.</div>
<div class="system-message" id="id72">
-<p class="system-message-title">System Message: <a name="id72">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 334); <em><a href="#id73">backlink</a></em></p>
+<p class="system-message-title">System Message: <a name="id72">ERROR/3</a> (<tt>functional/input/data/standard.txt</tt>, line 342); <em><a href="#id73">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 6defb4518..d06cd97d7 100644
--- a/docutils/test/functional/expected/standalone_rst_latex.tex
+++ b/docutils/test/functional/expected/standalone_rst_latex.tex
@@ -493,6 +493,12 @@ The field body may contain one or more body elements, indented
relative to the field marker.
+\item [credits:]
+This paragraph has the \titlereference{credits} class set. (This is actually not
+about credits but just for ensuring that the class attribute
+doesn't get stripped away.)
+
+
\end{description}
\end{quote}
diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt
index 730c68cfb..bc2165f9c 100644
--- a/docutils/test/functional/input/data/standard.txt
+++ b/docutils/test/functional/input/data/standard.txt
@@ -189,6 +189,14 @@ Field Lists
The field body may contain one or more body elements, indented
relative to the field marker.
+:credits:
+
+ .. class:: credits
+
+ This paragraph has the `credits` class set. (This is actually not
+ about credits but just for ensuring that the class attribute
+ doesn't get stripped away.)
+
Option Lists
------------