summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docutils/test/functional/expected/standalone_rst_html4css1.html257
-rw-r--r--docutils/test/functional/expected/standalone_rst_latex.tex57
-rw-r--r--docutils/test/functional/expected/standalone_rst_pseudoxml.txt252
-rw-r--r--docutils/test/functional/input/data/standard.txt5
4 files changed, 285 insertions, 286 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html
index a561e2339..a5011e498 100644
--- a/docutils/test/functional/expected/standalone_rst_html4css1.html
+++ b/docutils/test/functional/expected/standalone_rst_html4css1.html
@@ -85,70 +85,70 @@ They are transformed from section titles after parsing. -->
<div class="contents topic" id="table-of-contents">
<p class="topic-title first">Table of Contents</p>
<ul class="auto-toc simple">
-<li><a class="reference internal" href="#structural-elements" id="id32">1&nbsp;&nbsp;&nbsp;Structural Elements</a><ul class="auto-toc">
-<li><a class="reference internal" href="#section-title" id="id33">1.1&nbsp;&nbsp;&nbsp;Section Title</a></li>
-<li><a class="reference internal" href="#empty-section" id="id34">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></li>
-<li><a class="reference internal" href="#transitions" id="id35">1.3&nbsp;&nbsp;&nbsp;Transitions</a></li>
+<li><a class="reference internal" href="#structural-elements" id="id33">1&nbsp;&nbsp;&nbsp;Structural Elements</a><ul class="auto-toc">
+<li><a class="reference internal" href="#section-title" id="id34">1.1&nbsp;&nbsp;&nbsp;Section Title</a></li>
+<li><a class="reference internal" href="#empty-section" id="id35">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></li>
+<li><a class="reference internal" href="#transitions" id="id36">1.3&nbsp;&nbsp;&nbsp;Transitions</a></li>
</ul>
</li>
-<li><a class="reference internal" href="#body-elements" id="id36">2&nbsp;&nbsp;&nbsp;Body Elements</a><ul class="auto-toc">
-<li><a class="reference internal" href="#paragraphs" id="id37">2.1&nbsp;&nbsp;&nbsp;Paragraphs</a><ul class="auto-toc">
-<li><a class="reference internal" href="#inline-markup" id="id38">2.1.1&nbsp;&nbsp;&nbsp;Inline Markup</a></li>
+<li><a class="reference internal" href="#body-elements" id="id37">2&nbsp;&nbsp;&nbsp;Body Elements</a><ul class="auto-toc">
+<li><a class="reference internal" href="#paragraphs" id="id38">2.1&nbsp;&nbsp;&nbsp;Paragraphs</a><ul class="auto-toc">
+<li><a class="reference internal" href="#inline-markup" id="id39">2.1.1&nbsp;&nbsp;&nbsp;Inline Markup</a></li>
</ul>
</li>
-<li><a class="reference internal" href="#bullet-lists" id="id39">2.2&nbsp;&nbsp;&nbsp;Bullet Lists</a></li>
-<li><a class="reference internal" href="#enumerated-lists" id="id40">2.3&nbsp;&nbsp;&nbsp;Enumerated Lists</a></li>
-<li><a class="reference internal" href="#definition-lists" id="id41">2.4&nbsp;&nbsp;&nbsp;Definition Lists</a></li>
-<li><a class="reference internal" href="#field-lists" id="id42">2.5&nbsp;&nbsp;&nbsp;Field Lists</a></li>
-<li><a class="reference internal" href="#option-lists" id="id43">2.6&nbsp;&nbsp;&nbsp;Option Lists</a></li>
-<li><a class="reference internal" href="#literal-blocks" id="id44">2.7&nbsp;&nbsp;&nbsp;Literal Blocks</a></li>
-<li><a class="reference internal" href="#line-blocks" id="id45">2.8&nbsp;&nbsp;&nbsp;Line Blocks</a></li>
-<li><a class="reference internal" href="#block-quotes" id="id46">2.9&nbsp;&nbsp;&nbsp;Block Quotes</a></li>
-<li><a class="reference internal" href="#doctest-blocks" id="id47">2.10&nbsp;&nbsp;&nbsp;Doctest Blocks</a></li>
-<li><a class="reference internal" href="#footnotes" id="id48">2.11&nbsp;&nbsp;&nbsp;Footnotes</a></li>
-<li><a class="reference internal" href="#citations" id="id49">2.12&nbsp;&nbsp;&nbsp;Citations</a></li>
-<li><a class="reference internal" href="#targets" id="id50">2.13&nbsp;&nbsp;&nbsp;Targets</a><ul class="auto-toc">
-<li><a class="reference internal" href="#duplicate-target-names" id="id51">2.13.1&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></li>
-<li><a class="reference internal" href="#id20" id="id52">2.13.2&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></li>
+<li><a class="reference internal" href="#bullet-lists" id="id40">2.2&nbsp;&nbsp;&nbsp;Bullet Lists</a></li>
+<li><a class="reference internal" href="#enumerated-lists" id="id41">2.3&nbsp;&nbsp;&nbsp;Enumerated Lists</a></li>
+<li><a class="reference internal" href="#definition-lists" id="id42">2.4&nbsp;&nbsp;&nbsp;Definition Lists</a></li>
+<li><a class="reference internal" href="#field-lists" id="id43">2.5&nbsp;&nbsp;&nbsp;Field Lists</a></li>
+<li><a class="reference internal" href="#option-lists" id="id44">2.6&nbsp;&nbsp;&nbsp;Option Lists</a></li>
+<li><a class="reference internal" href="#literal-blocks" id="id45">2.7&nbsp;&nbsp;&nbsp;Literal Blocks</a></li>
+<li><a class="reference internal" href="#line-blocks" id="id46">2.8&nbsp;&nbsp;&nbsp;Line Blocks</a></li>
+<li><a class="reference internal" href="#block-quotes" id="id47">2.9&nbsp;&nbsp;&nbsp;Block Quotes</a></li>
+<li><a class="reference internal" href="#doctest-blocks" id="id48">2.10&nbsp;&nbsp;&nbsp;Doctest Blocks</a></li>
+<li><a class="reference internal" href="#footnotes" id="id49">2.11&nbsp;&nbsp;&nbsp;Footnotes</a></li>
+<li><a class="reference internal" href="#citations" id="id50">2.12&nbsp;&nbsp;&nbsp;Citations</a></li>
+<li><a class="reference internal" href="#targets" id="id51">2.13&nbsp;&nbsp;&nbsp;Targets</a><ul class="auto-toc">
+<li><a class="reference internal" href="#duplicate-target-names" id="id52">2.13.1&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></li>
+<li><a class="reference internal" href="#id21" id="id53">2.13.2&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></li>
</ul>
</li>
-<li><a class="reference internal" href="#directives" id="id53">2.14&nbsp;&nbsp;&nbsp;Directives</a><ul class="auto-toc">
-<li><a class="reference internal" href="#document-parts" id="id54">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></li>
-<li><a class="reference internal" href="#images" id="id55">2.14.2&nbsp;&nbsp;&nbsp;Images</a></li>
-<li><a class="reference internal" href="#admonitions" id="id56">2.14.3&nbsp;&nbsp;&nbsp;Admonitions</a></li>
-<li><a class="reference internal" href="#topics-sidebars-and-rubrics" id="id57">2.14.4&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></li>
-<li><a class="reference internal" href="#target-footnotes" id="id58">2.14.5&nbsp;&nbsp;&nbsp;Target Footnotes</a></li>
-<li><a class="reference internal" href="#replacement-text" id="id59">2.14.6&nbsp;&nbsp;&nbsp;Replacement Text</a></li>
-<li><a class="reference internal" href="#compound-paragraph" id="id60">2.14.7&nbsp;&nbsp;&nbsp;Compound Paragraph</a></li>
-<li><a class="reference internal" href="#parsed-literal-blocks" id="id61">2.14.8&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></li>
+<li><a class="reference internal" href="#directives" id="id54">2.14&nbsp;&nbsp;&nbsp;Directives</a><ul class="auto-toc">
+<li><a class="reference internal" href="#document-parts" id="id55">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></li>
+<li><a class="reference internal" href="#images" id="id56">2.14.2&nbsp;&nbsp;&nbsp;Images</a></li>
+<li><a class="reference internal" href="#admonitions" id="id57">2.14.3&nbsp;&nbsp;&nbsp;Admonitions</a></li>
+<li><a class="reference internal" href="#topics-sidebars-and-rubrics" id="id58">2.14.4&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></li>
+<li><a class="reference internal" href="#target-footnotes" id="id59">2.14.5&nbsp;&nbsp;&nbsp;Target Footnotes</a></li>
+<li><a class="reference internal" href="#replacement-text" id="id60">2.14.6&nbsp;&nbsp;&nbsp;Replacement Text</a></li>
+<li><a class="reference internal" href="#compound-paragraph" id="id61">2.14.7&nbsp;&nbsp;&nbsp;Compound Paragraph</a></li>
+<li><a class="reference internal" href="#parsed-literal-blocks" id="id62">2.14.8&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></li>
</ul>
</li>
-<li><a class="reference internal" href="#substitution-definitions" id="id62">2.15&nbsp;&nbsp;&nbsp;Substitution Definitions</a></li>
-<li><a class="reference internal" href="#comments" id="id63">2.16&nbsp;&nbsp;&nbsp;Comments</a></li>
-<li><a class="reference internal" href="#raw-text" id="id64">2.17&nbsp;&nbsp;&nbsp;Raw text</a></li>
-<li><a class="reference internal" href="#container" id="id65">2.18&nbsp;&nbsp;&nbsp;Container</a></li>
-<li><a class="reference internal" href="#colspanning-tables" id="id66">2.19&nbsp;&nbsp;&nbsp;Colspanning tables</a></li>
-<li><a class="reference internal" href="#rowspanning-tables" id="id67">2.20&nbsp;&nbsp;&nbsp;Rowspanning tables</a></li>
-<li><a class="reference internal" href="#complex-tables" id="id68">2.21&nbsp;&nbsp;&nbsp;Complex tables</a></li>
-<li><a class="reference internal" href="#list-tables" id="id69">2.22&nbsp;&nbsp;&nbsp;List Tables</a></li>
-<li><a class="reference internal" href="#custom-roles" id="id70">2.23&nbsp;&nbsp;&nbsp;Custom Roles</a></li>
+<li><a class="reference internal" href="#substitution-definitions" id="id63">2.15&nbsp;&nbsp;&nbsp;Substitution Definitions</a></li>
+<li><a class="reference internal" href="#comments" id="id64">2.16&nbsp;&nbsp;&nbsp;Comments</a></li>
+<li><a class="reference internal" href="#raw-text" id="id65">2.17&nbsp;&nbsp;&nbsp;Raw text</a></li>
+<li><a class="reference internal" href="#container" id="id66">2.18&nbsp;&nbsp;&nbsp;Container</a></li>
+<li><a class="reference internal" href="#colspanning-tables" id="id67">2.19&nbsp;&nbsp;&nbsp;Colspanning tables</a></li>
+<li><a class="reference internal" href="#rowspanning-tables" id="id68">2.20&nbsp;&nbsp;&nbsp;Rowspanning tables</a></li>
+<li><a class="reference internal" href="#complex-tables" id="id69">2.21&nbsp;&nbsp;&nbsp;Complex tables</a></li>
+<li><a class="reference internal" href="#list-tables" id="id70">2.22&nbsp;&nbsp;&nbsp;List Tables</a></li>
+<li><a class="reference internal" href="#custom-roles" id="id71">2.23&nbsp;&nbsp;&nbsp;Custom Roles</a></li>
</ul>
</li>
-<li><a class="reference internal" href="#error-handling" id="id71">3&nbsp;&nbsp;&nbsp;Error Handling</a></li>
+<li><a class="reference internal" href="#error-handling" id="id72">3&nbsp;&nbsp;&nbsp;Error Handling</a></li>
</ul>
</div>
<div class="section" id="structural-elements">
-<h1><a class="toc-backref" href="#id32">1&nbsp;&nbsp;&nbsp;Structural Elements</a></h1>
+<h1><a class="toc-backref" href="#id33">1&nbsp;&nbsp;&nbsp;Structural Elements</a></h1>
<div class="section" id="section-title">
-<h2 class="with-subtitle"><a class="toc-backref" href="#id33">1.1&nbsp;&nbsp;&nbsp;Section Title</a></h2>
+<h2 class="with-subtitle"><a class="toc-backref" href="#id34">1.1&nbsp;&nbsp;&nbsp;Section Title</a></h2>
<h2 class="section-subtitle" id="section-subtitle"><span class="section-subtitle">Section Subtitle</span></h2>
<p>That's it, the text just above this line.</p>
</div>
<div class="section" id="empty-section">
-<h2><a class="toc-backref" href="#id34">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></h2>
+<h2><a class="toc-backref" href="#id35">1.2&nbsp;&nbsp;&nbsp;Empty Section</a></h2>
</div>
<div class="section" id="transitions">
-<h2><a class="toc-backref" href="#id35">1.3&nbsp;&nbsp;&nbsp;Transitions</a></h2>
+<h2><a class="toc-backref" href="#id36">1.3&nbsp;&nbsp;&nbsp;Transitions</a></h2>
<p>Here's a transition:</p>
<hr class="docutils" />
<p>It divides the section. Transitions may also occur between sections:</p>
@@ -156,23 +156,23 @@ They are transformed from section titles after parsing. -->
</div>
<hr class="docutils" />
<div class="section" id="body-elements">
-<h1><a class="toc-backref" href="#id36">2&nbsp;&nbsp;&nbsp;Body Elements</a></h1>
+<h1><a class="toc-backref" href="#id37">2&nbsp;&nbsp;&nbsp;Body Elements</a></h1>
<div class="section" id="paragraphs">
-<h2><a class="toc-backref" href="#id37">2.1&nbsp;&nbsp;&nbsp;Paragraphs</a></h2>
+<h2><a class="toc-backref" href="#id38">2.1&nbsp;&nbsp;&nbsp;Paragraphs</a></h2>
<p>A paragraph.</p>
<div class="section" id="inline-markup">
-<h3><a class="toc-backref" href="#id38">2.1.1&nbsp;&nbsp;&nbsp;Inline Markup</a></h3>
+<h3><a class="toc-backref" href="#id39">2.1.1&nbsp;&nbsp;&nbsp;Inline Markup</a></h3>
<p>Paragraphs contain text and may contain inline markup: <em>emphasis</em>,
<strong>strong emphasis</strong>, <tt class="docutils literal"><span class="pre">inline</span> <span class="pre">literals</span></tt>, standalone hyperlinks
-(<a class="reference external" href="http://www.python.org">http://www.python.org</a>), external hyperlinks (<a class="reference external" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#id25" id="id26">[5]</a>), internal
+(<a class="reference external" href="http://www.python.org">http://www.python.org</a>), external hyperlinks (<a class="reference external" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#id26" id="id27">[5]</a>), internal
cross-references (<a class="reference internal" href="#example">example</a>), external hyperlinks with embedded URIs
(<a class="reference external" href="http://www.python.org">Python web site</a>), <a class="reference external" href="http://www.python.org/">anonymous hyperlink
-references</a> <a class="footnote-reference" href="#id25" id="id29">[5]</a> (<a class="reference external" href="http://docutils.sourceforge.net/">a second reference</a> <a class="footnote-reference" href="#id30" id="id31">[6]</a>), footnote references (manually
-numbered <a class="footnote-reference" href="#id8" id="id1">[1]</a>, anonymous auto-numbered <a class="footnote-reference" href="#id11" id="id2">[3]</a>, labeled auto-numbered
-<a class="footnote-reference" href="#label" id="id3">[2]</a>, or symbolic <a class="footnote-reference" href="#id12" id="id4">[*]</a>), citation references (<a class="citation-reference" href="#cit2002" id="id5">[CIT2002]</a>),
+references</a> <a class="footnote-reference" href="#id26" id="id30">[5]</a> (<a class="reference external" href="http://docutils.sourceforge.net/">a second reference</a> <a class="footnote-reference" href="#id31" id="id32">[6]</a>), footnote references (manually
+numbered <a class="footnote-reference" href="#id8" id="id1">[1]</a>, anonymous auto-numbered <a class="footnote-reference" href="#id12" id="id2">[3]</a>, labeled auto-numbered
+<a class="footnote-reference" href="#label" id="id3">[2]</a>, or symbolic <a class="footnote-reference" href="#id13" id="id4">[*]</a>), citation references (<a class="citation-reference" href="#cit2002" id="id5">[CIT2002]</a>),
substitution references (<img alt="EXAMPLE" src="../../../docs/user/rst/images/biohazard.png" />), and <span class="target" id="inline-hyperlink-targets">inline hyperlink targets</span>
-(see <a class="reference internal" href="#id22">Targets</a> below for a reference back to here). Character-level
-inline markup is also possible (although exceedingly ugly!) in <em>re</em><tt class="docutils literal"><span class="pre">Structured</span></tt><em>Text</em>. Problems are indicated by <a href="#id23"><span class="problematic" id="id24">|problematic|</span></a> text
+(see <a class="reference internal" href="#id23">Targets</a> below for a reference back to here). Character-level
+inline markup is also possible (although exceedingly ugly!) in <em>re</em><tt class="docutils literal"><span class="pre">Structured</span></tt><em>Text</em>. Problems are indicated by <a href="#id24"><span class="problematic" id="id25">|problematic|</span></a> text
(generated by processing errors; this one is intentional). Here is a
reference to the <a class="reference internal" href="#doctitle">doctitle</a> and the <a class="reference internal" href="#subtitle">subtitle</a>.</p>
<p>The default role for interpreted text is <cite>Title Reference</cite>. Here are
@@ -192,7 +192,7 @@ live link to PEP 258 here.</p>
</div>
</div>
<div class="section" id="bullet-lists">
-<h2><a class="toc-backref" href="#id39">2.2&nbsp;&nbsp;&nbsp;Bullet Lists</a></h2>
+<h2><a class="toc-backref" href="#id40">2.2&nbsp;&nbsp;&nbsp;Bullet Lists</a></h2>
<ul>
<li><p class="first">A bullet list</p>
<ul class="simple">
@@ -217,7 +217,7 @@ live link to PEP 258 here.</p>
</ul>
</div>
<div class="section" id="enumerated-lists">
-<h2><a class="toc-backref" href="#id40">2.3&nbsp;&nbsp;&nbsp;Enumerated Lists</a></h2>
+<h2><a class="toc-backref" href="#id41">2.3&nbsp;&nbsp;&nbsp;Enumerated Lists</a></h2>
<ol class="arabic">
<li><p class="first">Arabic numerals.</p>
<ol class="loweralpha simple">
@@ -250,7 +250,7 @@ live link to PEP 258 here.</p>
</ol>
</div>
<div class="section" id="definition-lists">
-<h2><a class="toc-backref" href="#id41">2.4&nbsp;&nbsp;&nbsp;Definition Lists</a></h2>
+<h2><a class="toc-backref" href="#id42">2.4&nbsp;&nbsp;&nbsp;Definition Lists</a></h2>
<dl class="docutils">
<dt>Term</dt>
<dd>Definition</dd>
@@ -265,7 +265,7 @@ live link to PEP 258 here.</p>
</dl>
</div>
<div class="section" id="field-lists">
-<h2><a class="toc-backref" href="#id42">2.5&nbsp;&nbsp;&nbsp;Field Lists</a></h2>
+<h2><a class="toc-backref" href="#id43">2.5&nbsp;&nbsp;&nbsp;Field Lists</a></h2>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
@@ -289,7 +289,7 @@ doesn't get stripped away.)</p>
</table>
</div>
<div class="section" id="option-lists">
-<h2><a class="toc-backref" href="#id43">2.6&nbsp;&nbsp;&nbsp;Option Lists</a></h2>
+<h2><a class="toc-backref" href="#id44">2.6&nbsp;&nbsp;&nbsp;Option Lists</a></h2>
<p>For listing command-line options:</p>
<table class="docutils option-list" frame="void" rules="none">
<col class="option" />
@@ -335,7 +335,7 @@ regardless of where it starts.</p>
description.</p>
</div>
<div class="section" id="literal-blocks">
-<h2><a class="toc-backref" href="#id44">2.7&nbsp;&nbsp;&nbsp;Literal Blocks</a></h2>
+<h2><a class="toc-backref" href="#id45">2.7&nbsp;&nbsp;&nbsp;Literal Blocks</a></h2>
<p>Literal blocks are indicated with a double-colon (&quot;::&quot;) at the end of
the preceding paragraph (over there <tt class="docutils literal"><span class="pre">--&gt;</span></tt>). They can be indented:</p>
<pre class="literal-block">
@@ -352,7 +352,7 @@ if literal_block:
</pre>
</div>
<div class="section" id="line-blocks">
-<h2><a class="toc-backref" href="#id45">2.8&nbsp;&nbsp;&nbsp;Line Blocks</a></h2>
+<h2><a class="toc-backref" href="#id46">2.8&nbsp;&nbsp;&nbsp;Line Blocks</a></h2>
<p>This section tests line blocks. Line blocks are body elements which
consist of lines and other line blocks. Nested line blocks cause
indentation.</p>
@@ -411,7 +411,7 @@ the left edge of the text above it.</div>
</blockquote>
</div>
<div class="section" id="block-quotes">
-<h2><a class="toc-backref" href="#id46">2.9&nbsp;&nbsp;&nbsp;Block Quotes</a></h2>
+<h2><a class="toc-backref" href="#id47">2.9&nbsp;&nbsp;&nbsp;Block Quotes</a></h2>
<p>Block quotes consist of indented body elements:</p>
<blockquote>
<p>My theory by A. Elk. Brackets Miss, brackets. This theory goes
@@ -423,7 +423,7 @@ own it, and what it is too.</p>
</blockquote>
</div>
<div class="section" id="doctest-blocks">
-<h2><a class="toc-backref" href="#id47">2.10&nbsp;&nbsp;&nbsp;Doctest Blocks</a></h2>
+<h2><a class="toc-backref" href="#id48">2.10&nbsp;&nbsp;&nbsp;Doctest Blocks</a></h2>
<pre class="doctest-block">
&gt;&gt;&gt; print 'Python-specific usage examples; begun with &quot;&gt;&gt;&gt;&quot;'
Python-specific usage examples; begun with &quot;&gt;&gt;&gt;&quot;
@@ -432,11 +432,11 @@ Python-specific usage examples; begun with &quot;&gt;&gt;&gt;&quot;
</pre>
</div>
<div class="section" id="footnotes">
-<h2><a class="toc-backref" href="#id48">2.11&nbsp;&nbsp;&nbsp;Footnotes</a></h2>
+<h2><a class="toc-backref" href="#id49">2.11&nbsp;&nbsp;&nbsp;Footnotes</a></h2>
<table class="docutils footnote" frame="void" id="id8" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
-<tr><td class="label">[1]</td><td><em>(<a class="fn-backref" href="#id1">1</a>, <a class="fn-backref" href="#id9">2</a>, <a class="fn-backref" href="#id21">3</a>)</em> <p>A footnote contains body elements, consistently indented by at
+<tr><td class="label">[1]</td><td><em>(<a class="fn-backref" href="#id1">1</a>, <a class="fn-backref" href="#id9">2</a>, <a class="fn-backref" href="#id22">3</a>)</em> <p>A footnote contains body elements, consistently indented by at
least 3 spaces.</p>
<p class="last">This is the footnote's second paragraph.</p>
</td></tr>
@@ -448,11 +448,10 @@ least 3 spaces.</p>
<tr><td class="label">[2]</td><td><em>(<a class="fn-backref" href="#id3">1</a>, <a class="fn-backref" href="#id10">2</a>)</em> Footnotes may be numbered, either manually (as in <a class="footnote-reference" href="#id8" id="id9">[1]</a>) or
automatically using a &quot;#&quot;-prefixed label. This footnote has a
label so it can be referred to from multiple places, both as a
-footnote reference (<a class="footnote-reference" href="#label" id="id10">[2]</a>) and as a hyperlink reference
-(<a class="reference internal" href="#label">label</a>).</td></tr>
+footnote reference (<a class="footnote-reference" href="#label" id="id10">[2]</a>) and as a <a class="reference internal" href="#label">hyperlink reference</a>.</td></tr>
</tbody>
</table>
-<table class="docutils footnote" frame="void" id="id11" rules="none">
+<table class="docutils footnote" frame="void" id="id12" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id2">[3]</a></td><td><p class="first">This footnote is numbered automatically and anonymously using a
@@ -462,90 +461,90 @@ label of &quot;#&quot; only.</p>
</td></tr>
</tbody>
</table>
-<table class="docutils footnote" frame="void" id="id12" rules="none">
+<table class="docutils footnote" frame="void" id="id13" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label"><a class="fn-backref" href="#id4">[*]</a></td><td>Footnotes may also use symbols, specified with a &quot;*&quot; label.
-Here's a reference to the next footnote: <a class="footnote-reference" href="#id14" id="id13">[†]</a>.</td></tr>
+Here's a reference to the next footnote: <a class="footnote-reference" href="#id15" id="id14">[†]</a>.</td></tr>
</tbody>
</table>
-<table class="docutils footnote" frame="void" id="id14" rules="none">
+<table class="docutils footnote" frame="void" id="id15" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
-<tr><td class="label"><a class="fn-backref" href="#id13">[†]</a></td><td>This footnote shows the next symbol in the sequence.</td></tr>
+<tr><td class="label"><a class="fn-backref" href="#id14">[†]</a></td><td>This footnote shows the next symbol in the sequence.</td></tr>
</tbody>
</table>
-<table class="docutils footnote" frame="void" id="id15" rules="none">
+<table class="docutils footnote" frame="void" id="id16" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
<tr><td class="label">[4]</td><td>Here's an unreferenced footnote, with a reference to a
-nonexistent footnote: <a href="#id80"><span class="problematic" id="id81"><span id="id16"></span>[5]_</span></a>.</td></tr>
+nonexistent footnote: <a href="#id81"><span class="problematic" id="id82"><span id="id17"></span>[5]_</span></a>.</td></tr>
</tbody>
</table>
</div>
<div class="section" id="citations">
-<h2><a class="toc-backref" href="#id49">2.12&nbsp;&nbsp;&nbsp;Citations</a></h2>
+<h2><a class="toc-backref" href="#id50">2.12&nbsp;&nbsp;&nbsp;Citations</a></h2>
<table class="docutils citation" frame="void" id="cit2002" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
-<tr><td class="label">[CIT2002]</td><td><em>(<a class="fn-backref" href="#id5">1</a>, <a class="fn-backref" href="#id17">2</a>)</em> Citations are text-labeled footnotes. They may be
+<tr><td class="label">[CIT2002]</td><td><em>(<a class="fn-backref" href="#id5">1</a>, <a class="fn-backref" href="#id18">2</a>)</em> Citations are text-labeled footnotes. They may be
rendered separately and differently from footnotes.</td></tr>
</tbody>
</table>
-<p>Here's a reference to the above, <a class="citation-reference" href="#cit2002" id="id17">[CIT2002]</a>, and a <a href="#id82"><span class="problematic" id="id83"><span id="id18"></span>[nonexistent]_</span></a>
+<p>Here's a reference to the above, <a class="citation-reference" href="#cit2002" id="id18">[CIT2002]</a>, and a <a href="#id83"><span class="problematic" id="id84"><span id="id19"></span>[nonexistent]_</span></a>
citation.</p>
</div>
<div class="section" id="targets">
-<span id="another-target"></span><h2><a class="toc-backref" href="#id50">2.13&nbsp;&nbsp;&nbsp;Targets</a></h2>
+<span id="another-target"></span><h2><a class="toc-backref" href="#id51">2.13&nbsp;&nbsp;&nbsp;Targets</a></h2>
<p id="example">This paragraph is pointed to by the explicit &quot;example&quot; target. A
reference can be found under <a class="reference internal" href="#inline-markup">Inline Markup</a>, above. <a class="reference internal" href="#inline-hyperlink-targets">Inline
hyperlink targets</a> are also possible.</p>
<p>Section headers are implicit targets, referred to by name. See
-<a class="reference internal" href="#id22">Targets</a>, which is a subsection of <a class="reference internal" href="#body-elements">Body Elements</a>.</p>
+<a class="reference internal" href="#id23">Targets</a>, which is a subsection of <a class="reference internal" href="#body-elements">Body Elements</a>.</p>
<p>Explicit external targets are interpolated into references such as
-&quot;<a class="reference external" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#id25" id="id27">[5]</a>&quot;.</p>
-<p>Targets may be indirect and anonymous. Thus <a class="reference internal" href="#id22">this phrase</a> may also
-refer to the <a class="reference internal" href="#id22">Targets</a> section.</p>
-<p>Here's a <a href="#id84"><span class="problematic" id="id85">`hyperlink reference without a target`_</span></a>, which generates an
+&quot;<a class="reference external" href="http://www.python.org/">Python</a> <a class="footnote-reference" href="#id26" id="id28">[5]</a>&quot;.</p>
+<p>Targets may be indirect and anonymous. Thus <a class="reference internal" href="#id23">this phrase</a> may also
+refer to the <a class="reference internal" href="#id23">Targets</a> section.</p>
+<p>Here's a <a href="#id85"><span class="problematic" id="id86">`hyperlink reference without a target`_</span></a>, which generates an
error.</p>
<div class="section" id="duplicate-target-names">
-<h3><a class="toc-backref" href="#id51">2.13.1&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></h3>
+<h3><a class="toc-backref" href="#id52">2.13.1&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></h3>
<p>Duplicate names in section headers or other implicit targets will
generate &quot;info&quot; (level-1) system messages. Duplicate names in
explicit targets will generate &quot;warning&quot; (level-2) system messages.</p>
</div>
-<div class="section" id="id20">
-<h3><a class="toc-backref" href="#id52">2.13.2&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></h3>
+<div class="section" id="id21">
+<h3><a class="toc-backref" href="#id53">2.13.2&nbsp;&nbsp;&nbsp;Duplicate Target Names</a></h3>
<p>Since there are two &quot;Duplicate Target Names&quot; section headers, we
cannot uniquely refer to either of them by name. If we try to (like
-this: <a href="#id86"><span class="problematic" id="id87">`Duplicate Target Names`_</span></a>), an error is generated.</p>
+this: <a href="#id87"><span class="problematic" id="id88">`Duplicate Target Names`_</span></a>), an error is generated.</p>
</div>
</div>
<div class="section" id="directives">
-<h2><a class="toc-backref" href="#id53">2.14&nbsp;&nbsp;&nbsp;Directives</a></h2>
+<h2><a class="toc-backref" href="#id54">2.14&nbsp;&nbsp;&nbsp;Directives</a></h2>
<div class="contents local topic" id="contents">
<ul class="auto-toc simple">
-<li><a class="reference internal" href="#document-parts" id="id72">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></li>
-<li><a class="reference internal" href="#images" id="id73">2.14.2&nbsp;&nbsp;&nbsp;Images</a></li>
-<li><a class="reference internal" href="#admonitions" id="id74">2.14.3&nbsp;&nbsp;&nbsp;Admonitions</a></li>
-<li><a class="reference internal" href="#topics-sidebars-and-rubrics" id="id75">2.14.4&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></li>
-<li><a class="reference internal" href="#target-footnotes" id="id76">2.14.5&nbsp;&nbsp;&nbsp;Target Footnotes</a></li>
-<li><a class="reference internal" href="#replacement-text" id="id77">2.14.6&nbsp;&nbsp;&nbsp;Replacement Text</a></li>
-<li><a class="reference internal" href="#compound-paragraph" id="id78">2.14.7&nbsp;&nbsp;&nbsp;Compound Paragraph</a></li>
-<li><a class="reference internal" href="#parsed-literal-blocks" id="id79">2.14.8&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></li>
+<li><a class="reference internal" href="#document-parts" id="id73">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></li>
+<li><a class="reference internal" href="#images" id="id74">2.14.2&nbsp;&nbsp;&nbsp;Images</a></li>
+<li><a class="reference internal" href="#admonitions" id="id75">2.14.3&nbsp;&nbsp;&nbsp;Admonitions</a></li>
+<li><a class="reference internal" href="#topics-sidebars-and-rubrics" id="id76">2.14.4&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></li>
+<li><a class="reference internal" href="#target-footnotes" id="id77">2.14.5&nbsp;&nbsp;&nbsp;Target Footnotes</a></li>
+<li><a class="reference internal" href="#replacement-text" id="id78">2.14.6&nbsp;&nbsp;&nbsp;Replacement Text</a></li>
+<li><a class="reference internal" href="#compound-paragraph" id="id79">2.14.7&nbsp;&nbsp;&nbsp;Compound Paragraph</a></li>
+<li><a class="reference internal" href="#parsed-literal-blocks" id="id80">2.14.8&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></li>
</ul>
</div>
<p>These are just a sample of the many reStructuredText Directives. For
others, please see
<a class="reference external" href="http://docutils.sourceforge.net/docs/ref/rst/directives.html">http://docutils.sourceforge.net/docs/ref/rst/directives.html</a>.</p>
<div class="section" id="document-parts">
-<h3><a class="toc-backref" href="#id72">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></h3>
+<h3><a class="toc-backref" href="#id73">2.14.1&nbsp;&nbsp;&nbsp;Document Parts</a></h3>
<p>An example of the &quot;contents&quot; directive can be seen above this section
(a local, untitled table of <a class="reference internal" href="#contents">contents</a>) and at the beginning of the
document (a document-wide <a class="reference internal" href="#table-of-contents">table of contents</a>).</p>
</div>
<div class="section" id="images">
-<h3><a class="toc-backref" href="#id73">2.14.2&nbsp;&nbsp;&nbsp;Images</a></h3>
+<h3><a class="toc-backref" href="#id74">2.14.2&nbsp;&nbsp;&nbsp;Images</a></h3>
<p>An image directive (also clickable -- a hyperlink reference):</p>
<a class="reference internal image-reference" href="#directives"><img alt="../../../docs/user/rst/images/title.png" class="class1 class2" src="../../../docs/user/rst/images/title.png" /></a>
<p>Image with multiple IDs:</p>
@@ -619,7 +618,7 @@ This is the legend.</div>
<img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="height: 3cm;" />
</div>
<div class="section" id="admonitions">
-<h3><a class="toc-backref" href="#id74">2.14.3&nbsp;&nbsp;&nbsp;Admonitions</a></h3>
+<h3><a class="toc-backref" href="#id75">2.14.3&nbsp;&nbsp;&nbsp;Admonitions</a></h3>
<div class="attention">
<p class="first admonition-title">Attention!</p>
<p class="last">Directives at large.</p>
@@ -668,7 +667,7 @@ Reader discretion is strongly advised.</p>
</div>
</div>
<div class="section" id="topics-sidebars-and-rubrics">
-<h3><a class="toc-backref" href="#id75">2.14.4&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></h3>
+<h3><a class="toc-backref" href="#id76">2.14.4&nbsp;&nbsp;&nbsp;Topics, Sidebars, and Rubrics</a></h3>
<div class="sidebar">
<p class="first sidebar-title">Sidebar Title</p>
<p class="sidebar-subtitle">Optional Subtitle</p>
@@ -685,26 +684,26 @@ background color.</p>
<p class="rubric">This is a rubric</p>
</div>
<div class="section" id="target-footnotes">
-<h3><a class="toc-backref" href="#id76">2.14.5&nbsp;&nbsp;&nbsp;Target Footnotes</a></h3>
-<table class="docutils footnote" frame="void" id="id25" rules="none">
+<h3><a class="toc-backref" href="#id77">2.14.5&nbsp;&nbsp;&nbsp;Target Footnotes</a></h3>
+<table class="docutils footnote" frame="void" id="id26" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
-<tr><td class="label">[5]</td><td><em>(<a class="fn-backref" href="#id26">1</a>, <a class="fn-backref" href="#id27">2</a>, <a class="fn-backref" href="#id28">3</a>, <a class="fn-backref" href="#id29">4</a>)</em> <a class="reference external" href="http://www.python.org/">http://www.python.org/</a></td></tr>
+<tr><td class="label">[5]</td><td><em>(<a class="fn-backref" href="#id27">1</a>, <a class="fn-backref" href="#id28">2</a>, <a class="fn-backref" href="#id29">3</a>, <a class="fn-backref" href="#id30">4</a>)</em> <a class="reference external" href="http://www.python.org/">http://www.python.org/</a></td></tr>
</tbody>
</table>
-<table class="docutils footnote" frame="void" id="id30" rules="none">
+<table class="docutils footnote" frame="void" id="id31" rules="none">
<colgroup><col class="label" /><col /></colgroup>
<tbody valign="top">
-<tr><td class="label"><a class="fn-backref" href="#id31">[6]</a></td><td><a class="reference external" href="http://docutils.sourceforge.net/">http://docutils.sourceforge.net/</a></td></tr>
+<tr><td class="label"><a class="fn-backref" href="#id32">[6]</a></td><td><a class="reference external" href="http://docutils.sourceforge.net/">http://docutils.sourceforge.net/</a></td></tr>
</tbody>
</table>
</div>
<div class="section" id="replacement-text">
-<h3><a class="toc-backref" href="#id77">2.14.6&nbsp;&nbsp;&nbsp;Replacement Text</a></h3>
-<p>I recommend you try <a class="reference external" href="http://www.python.org/">Python, <em>the</em> best language around</a> <a class="footnote-reference" href="#id25" id="id28">[5]</a>.</p>
+<h3><a class="toc-backref" href="#id78">2.14.6&nbsp;&nbsp;&nbsp;Replacement Text</a></h3>
+<p>I recommend you try <a class="reference external" href="http://www.python.org/">Python, <em>the</em> best language around</a> <a class="footnote-reference" href="#id26" id="id29">[5]</a>.</p>
</div>
<div class="section" id="compound-paragraph">
-<h3><a class="toc-backref" href="#id78">2.14.7&nbsp;&nbsp;&nbsp;Compound Paragraph</a></h3>
+<h3><a class="toc-backref" href="#id79">2.14.7&nbsp;&nbsp;&nbsp;Compound Paragraph</a></h3>
<div class="some-class compound">
<p class="compound-first">Compound 1, paragraph 1.</p>
<p class="compound-middle">Compound 1, paragraph 2.</p>
@@ -772,23 +771,23 @@ paragraph.</td>
</div>
</div>
<div class="section" id="parsed-literal-blocks">
-<h3><a class="toc-backref" href="#id79">2.14.8&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></h3>
+<h3><a class="toc-backref" href="#id80">2.14.8&nbsp;&nbsp;&nbsp;Parsed Literal Blocks</a></h3>
<pre class="literal-block">
This is a parsed literal block.
This line is indented. The next line is blank.
Inline markup is supported, e.g. <em>emphasis</em>, <strong>strong</strong>, <tt class="docutils literal"><span class="pre">literal</span>
-<span class="pre">text</span></tt>, footnotes <a class="footnote-reference" href="#id8" id="id21">[1]</a>, <span class="target" id="id22">targets</span>, and <a class="reference external" href="http://www.python.org/">references</a>.
+<span class="pre">text</span></tt>, footnotes <a class="footnote-reference" href="#id8" id="id22">[1]</a>, <span class="target" id="id23">targets</span>, and <a class="reference external" href="http://www.python.org/">references</a>.
</pre>
</div>
</div>
<div class="section" id="substitution-definitions">
-<h2><a class="toc-backref" href="#id62">2.15&nbsp;&nbsp;&nbsp;Substitution Definitions</a></h2>
+<h2><a class="toc-backref" href="#id63">2.15&nbsp;&nbsp;&nbsp;Substitution Definitions</a></h2>
<p>An inline image (<img alt="EXAMPLE" src="../../../docs/user/rst/images/biohazard.png" />) example:</p>
<p>(Substitution definitions are not visible in the HTML source.)</p>
</div>
<div class="section" id="comments">
-<h2><a class="toc-backref" href="#id63">2.16&nbsp;&nbsp;&nbsp;Comments</a></h2>
+<h2><a class="toc-backref" href="#id64">2.16&nbsp;&nbsp;&nbsp;Comments</a></h2>
<p>Here's one:</p>
<!-- Comments begin with two dots and a space. Anything may
follow, except for the syntax of footnotes, hyperlink
@@ -800,20 +799,20 @@ Comments may contain non-ASCII characters: ä ö ü æ ø å -->
<p>(View the HTML source to see the comment.)</p>
</div>
<div class="section" id="raw-text">
-<h2><a class="toc-backref" href="#id64">2.17&nbsp;&nbsp;&nbsp;Raw text</a></h2>
+<h2><a class="toc-backref" href="#id65">2.17&nbsp;&nbsp;&nbsp;Raw text</a></h2>
<p>This does not necessarily look nice, because there may be missing white space.</p>
<p>It's just there to freeze the behavior.</p>
A test.Second test.<div class="myclass">Another test with myclass set.</div><p>This is the <span class="myrawroleclass">fourth test</span> with myrawroleclass set.</p>
Fifth test in HTML.<br />Line two.</div>
<div class="section" id="container">
-<h2><a class="toc-backref" href="#id65">2.18&nbsp;&nbsp;&nbsp;Container</a></h2>
+<h2><a class="toc-backref" href="#id66">2.18&nbsp;&nbsp;&nbsp;Container</a></h2>
<div class="custom container">
<p>paragraph 1</p>
<p>paragraph 2</p>
</div>
</div>
<div class="section" id="colspanning-tables">
-<h2><a class="toc-backref" href="#id66">2.19&nbsp;&nbsp;&nbsp;Colspanning tables</a></h2>
+<h2><a class="toc-backref" href="#id67">2.19&nbsp;&nbsp;&nbsp;Colspanning tables</a></h2>
<p>This table has a cell spanning two columns:</p>
<table border="1" class="docutils">
<colgroup>
@@ -851,7 +850,7 @@ Fifth test in HTML.<br />Line two.</div>
</table>
</div>
<div class="section" id="rowspanning-tables">
-<h2><a class="toc-backref" href="#id67">2.20&nbsp;&nbsp;&nbsp;Rowspanning tables</a></h2>
+<h2><a class="toc-backref" href="#id68">2.20&nbsp;&nbsp;&nbsp;Rowspanning tables</a></h2>
<p>Here's a table with cells spanning several rows:</p>
<table border="1" class="docutils">
<colgroup>
@@ -884,7 +883,7 @@ cell.</td>
</table>
</div>
<div class="section" id="complex-tables">
-<h2><a class="toc-backref" href="#id68">2.21&nbsp;&nbsp;&nbsp;Complex tables</a></h2>
+<h2><a class="toc-backref" href="#id69">2.21&nbsp;&nbsp;&nbsp;Complex tables</a></h2>
<p>Here's a complex table, which should test all features.</p>
<table border="1" class="docutils">
<colgroup>
@@ -933,7 +932,7 @@ empty: <tt class="docutils literal"><span class="pre">--&gt;</span></tt></td>
</table>
</div>
<div class="section" id="list-tables">
-<h2><a class="toc-backref" href="#id69">2.22&nbsp;&nbsp;&nbsp;List Tables</a></h2>
+<h2><a class="toc-backref" href="#id70">2.22&nbsp;&nbsp;&nbsp;List Tables</a></h2>
<p>Here's a list table exercising all features:</p>
<table border="1" class="test docutils">
<caption>list table with integral header</caption>
@@ -966,7 +965,7 @@ crunchy, now would it?</td>
</table>
</div>
<div class="section" id="custom-roles">
-<h2><a class="toc-backref" href="#id70">2.23&nbsp;&nbsp;&nbsp;Custom Roles</a></h2>
+<h2><a class="toc-backref" href="#id71">2.23&nbsp;&nbsp;&nbsp;Custom Roles</a></h2>
<ul>
<li><p class="first">A role based on an existing role.</p>
<p><tt class="custom docutils literal"><span class="pre">one</span></tt> <tt class="custom docutils literal"><span class="pre">two</span></tt> <tt class="custom docutils literal"><span class="pre">three</span></tt></p>
@@ -984,7 +983,7 @@ crunchy, now would it?</td>
</div>
</div>
<div class="section" id="error-handling">
-<h1><a class="toc-backref" href="#id71">3&nbsp;&nbsp;&nbsp;Error Handling</a></h1>
+<h1><a class="toc-backref" href="#id72">3&nbsp;&nbsp;&nbsp;Error Handling</a></h1>
<p>Any errors caught during processing will generate system messages.</p>
<p>There should be five messages in the following, auto-generated
section, &quot;Docutils System Messages&quot;:</p>
@@ -992,20 +991,20 @@ section, &quot;Docutils System Messages&quot;:</p>
</div>
<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>
+<div class="system-message" id="id24">
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 100); <em><a href="#id25">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 358); <em><a href="#id81">backlink</a></em></p>
+<div class="system-message" id="id81">
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/standalone_rst_html4css1.txt</tt>, line 359); <em><a href="#id82">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 367); <em><a href="#id83">backlink</a></em></p>
+<div class="system-message" id="id83">
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 368); <em><a href="#id84">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 394); <em><a href="#id85">backlink</a></em></p>
+<div class="system-message" id="id85">
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 395); <em><a href="#id86">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 407); <em><a href="#id87">backlink</a></em></p>
+<div class="system-message" id="id87">
+<p class="system-message-title">System Message: ERROR/3 (<tt class="docutils">functional/input/data/standard.txt</tt>, line 408); <em><a href="#id88">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 837af1d99..15393fbed 100644
--- a/docutils/test/functional/expected/standalone_rst_latex.tex
+++ b/docutils/test/functional/expected/standalone_rst_latex.tex
@@ -178,7 +178,7 @@ reStructuredText construct.
\begin{list}{}{}
\item {} \href{\#duplicate-target-names}{2.13.1~~~Duplicate Target Names}
-\item {} \href{\#id20}{2.13.2~~~Duplicate Target Names}
+\item {} \href{\#id21}{2.13.2~~~Duplicate Target Names}
\end{list}
@@ -220,7 +220,7 @@ reStructuredText construct.
\item {} \href{\#some-tests-for-the-latex2e-writer}{4~~~Some Tests for the LaTeX2e Writer}
-\item {} \href{\#id23}{5~~~Option lists}
+\item {} \href{\#id24}{5~~~Option lists}
\begin{list}{}{}
\item {} \href{\#monospaced-non-alphanumeric-characters}{5.1~~~Monospaced non-alphanumeric characters}
@@ -313,13 +313,13 @@ A paragraph.
Paragraphs contain text and may contain inline markup: \emph{emphasis},
\textbf{strong emphasis}, \texttt{inline literals}, standalone hyperlinks
-(\href{http://www.python.org}{http://www.python.org}), external hyperlinks (\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id26}{5}}), internal
+(\href{http://www.python.org}{http://www.python.org}), external hyperlinks (\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id27}{5}}), internal
cross-references (\href{\#example}{example}), external hyperlinks with embedded URIs
(\href{http://www.python.org}{Python web site}), \href{http://www.python.org/}{anonymous hyperlink
-references}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id26}{5}} (\href{http://docutils.sourceforge.net/}{a second reference}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id31}{6}}), footnote references (manually
-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}, anonymous auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id11}{3}}, labeled auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}, or symbolic\raisebox{.5em}[0em]{\scriptsize\hyperlink{id12}{*}}), citation references ([\hyperlink{cit2002}{CIT2002}]),
+references}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id27}{5}} (\href{http://docutils.sourceforge.net/}{a second reference}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id32}{6}}), footnote references (manually
+numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}, anonymous auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{id12}{3}}, labeled auto-numbered\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}, or symbolic\raisebox{.5em}[0em]{\scriptsize\hyperlink{id13}{*}}), citation references ([\hyperlink{cit2002}{CIT2002}]),
substitution references (\includegraphics{../../../docs/user/rst/images/biohazard.png}), and \hypertarget{inline-hyperlink-targets}{inline hyperlink targets}
-(see \href{\#id22}{Targets} below for a reference back to here). Character-level
+(see \href{\#id23}{Targets} below for a reference back to here). Character-level
inline markup is also possible (although exceedingly ugly!) in \emph{re}\texttt{Structured}\emph{Text}. Problems are indicated by {\color{red}\bfseries{}{\textbar}problematic{\textbar}} text
(generated by processing errors; this one is intentional). Here is a
reference to the \href{\#doctitle}{doctitle} and the \href{\#subtitle}{subtitle}.
@@ -742,10 +742,9 @@ This is the footnote's second paragraph.
Footnotes may be numbered, either manually (as in\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}}) or
automatically using a ``{\#}''-prefixed label. This footnote has a
label so it can be referred to from multiple places, both as a
-footnote reference (\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}) and as a hyperlink reference
-(\href{\#label}{label}).
-\end{figure}
-\begin{figure}[b]\hypertarget{id11}$^{3}$
+footnote reference (\raisebox{.5em}[0em]{\scriptsize\hyperlink{label}{2}}) and as a \href{\#label}{hyperlink reference}.
+\hypertarget{label}{}\end{figure}
+\begin{figure}[b]\hypertarget{id12}$^{3}$
This footnote is numbered automatically and anonymously using a
label of ``{\#}'' only.
@@ -753,14 +752,14 @@ This is the second paragraph.
And this is the third paragraph.
\end{figure}
-\begin{figure}[b]\hypertarget{id12}$^{*}$
+\begin{figure}[b]\hypertarget{id13}$^{*}$
Footnotes may also use symbols, specified with a ``*'' label.
-Here's a reference to the next footnote:\raisebox{.5em}[0em]{\scriptsize\hyperlink{id14}{{\dag}}}.
+Here's a reference to the next footnote:\raisebox{.5em}[0em]{\scriptsize\hyperlink{id15}{{\dag}}}.
\end{figure}
-\begin{figure}[b]\hypertarget{id14}$^{{\dag}}$
+\begin{figure}[b]\hypertarget{id15}$^{{\dag}}$
This footnote shows the next symbol in the sequence.
\end{figure}
-\begin{figure}[b]\hypertarget{id15}$^{4}$
+\begin{figure}[b]\hypertarget{id16}$^{4}$
Here's an unreferenced footnote, with a reference to a
nonexistent footnote:{\color{red}\bfseries{}{[}5{]}{\_}}.
\end{figure}
@@ -796,14 +795,14 @@ reference can be found under \href{\#inline-markup}{Inline Markup}, above. \href
hyperlink targets} are also possible.
Section headers are implicit targets, referred to by name. See
-\href{\#id22}{Targets}, which is a subsection of \href{\#body-elements}{Body Elements}.
+\href{\#id23}{Targets}, which is a subsection of \href{\#body-elements}{Body Elements}.
Explicit external targets are interpolated into references such as
-``\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id26}{5}}''.
+``\href{http://www.python.org/}{Python}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id27}{5}}''.
-Targets may be indirect and anonymous. Thus \href{\#id22}{this phrase} may also
-refer to the \href{\#id22}{Targets} section.
-\hypertarget{id22}{}
+Targets may be indirect and anonymous. Thus \href{\#id23}{this phrase} may also
+refer to the \href{\#id23}{Targets} section.
+\hypertarget{id23}{}
Here's a {\color{red}\bfseries{}`hyperlink reference without a target`{\_}}, which generates an
error.
@@ -822,10 +821,10 @@ explicit targets will generate ``warning'' (level-2) system messages.
%___________________________________________________________________________
-\hypertarget{id20}{}
-\pdfbookmark[2]{2.13.2~~~Duplicate Target Names}{id20}
+\hypertarget{id21}{}
+\pdfbookmark[2]{2.13.2~~~Duplicate Target Names}{id21}
\subsubsection*{2.13.2~~~Duplicate Target Names}
-\label{id20}
+\label{id21}
Since there are two ``Duplicate Target Names'' section headers, we
cannot uniquely refer to either of them by name. If we try to (like
@@ -1135,10 +1134,10 @@ This is a topic.
\pdfbookmark[2]{2.14.5~~~Target Footnotes}{target-footnotes}
\subsubsection*{2.14.5~~~Target Footnotes}
\label{target-footnotes}
-\begin{figure}[b]\hypertarget{id26}$^{5}$
+\begin{figure}[b]\hypertarget{id27}$^{5}$
\href{http://www.python.org/}{http://www.python.org/}
\end{figure}
-\begin{figure}[b]\hypertarget{id31}$^{6}$
+\begin{figure}[b]\hypertarget{id32}$^{6}$
\href{http://docutils.sourceforge.net/}{http://docutils.sourceforge.net/}
\end{figure}
@@ -1150,7 +1149,7 @@ This is a topic.
\subsubsection*{2.14.6~~~Replacement Text}
\label{replacement-text}
-I recommend you try \href{http://www.python.org/}{Python, \emph{the} best language around}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id26}{5}}.
+I recommend you try \href{http://www.python.org/}{Python, \emph{the} best language around}\raisebox{.5em}[0em]{\scriptsize\hyperlink{id27}{5}}.
%___________________________________________________________________________
@@ -1240,7 +1239,7 @@ This~is~a~parsed~literal~block.~\\
~~~~This~line~is~indented.~~The~next~line~is~blank.~\\
~\\
Inline~markup~is~supported,~e.g.~\emph{emphasis},~\textbf{strong},~\texttt{literal~\\
-text},~footnotes\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}},~\hypertarget{id22}{targets},~and~\href{http://www.python.org/}{references}.
+text},~footnotes\raisebox{.5em}[0em]{\scriptsize\hyperlink{id8}{1}},~\hypertarget{id23}{targets},~and~\href{http://www.python.org/}{references}.
}\end{quote}
@@ -1435,10 +1434,10 @@ This file is user by the standalone{\_}rst{\_}latex test.
%___________________________________________________________________________
-\hypertarget{id23}{}
-\pdfbookmark[0]{5~~~Option lists}{id23}
+\hypertarget{id24}{}
+\pdfbookmark[0]{5~~~Option lists}{id24}
\section*{5~~~Option lists}
-\label{id23}
+\label{id24}
The LaTeX-2e description environment is used for definition lists.
The definition is continued on the same line as the term, this should
diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
index 1578dd155..5c8143544 100644
--- a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
+++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
@@ -91,250 +91,250 @@
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id32" refid="structural-elements">
+ <reference ids="id33" refid="structural-elements">
<generated classes="sectnum">
1   
Structural Elements
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id33" refid="section-title">
+ <reference ids="id34" refid="section-title">
<generated classes="sectnum">
1.1   
Section Title
<list_item>
<paragraph>
- <reference ids="id34" refid="empty-section">
+ <reference ids="id35" refid="empty-section">
<generated classes="sectnum">
1.2   
Empty Section
<list_item>
<paragraph>
- <reference ids="id35" refid="transitions">
+ <reference ids="id36" refid="transitions">
<generated classes="sectnum">
1.3   
Transitions
<list_item>
<paragraph>
- <reference ids="id36" refid="body-elements">
+ <reference ids="id37" refid="body-elements">
<generated classes="sectnum">
2   
Body Elements
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id37" refid="paragraphs">
+ <reference ids="id38" refid="paragraphs">
<generated classes="sectnum">
2.1   
Paragraphs
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id38" refid="inline-markup">
+ <reference ids="id39" refid="inline-markup">
<generated classes="sectnum">
2.1.1   
Inline Markup
<list_item>
<paragraph>
- <reference ids="id39" refid="bullet-lists">
+ <reference ids="id40" refid="bullet-lists">
<generated classes="sectnum">
2.2   
Bullet Lists
<list_item>
<paragraph>
- <reference ids="id40" refid="enumerated-lists">
+ <reference ids="id41" refid="enumerated-lists">
<generated classes="sectnum">
2.3   
Enumerated Lists
<list_item>
<paragraph>
- <reference ids="id41" refid="definition-lists">
+ <reference ids="id42" refid="definition-lists">
<generated classes="sectnum">
2.4   
Definition Lists
<list_item>
<paragraph>
- <reference ids="id42" refid="field-lists">
+ <reference ids="id43" refid="field-lists">
<generated classes="sectnum">
2.5   
Field Lists
<list_item>
<paragraph>
- <reference ids="id43" refid="option-lists">
+ <reference ids="id44" refid="option-lists">
<generated classes="sectnum">
2.6   
Option Lists
<list_item>
<paragraph>
- <reference ids="id44" refid="literal-blocks">
+ <reference ids="id45" refid="literal-blocks">
<generated classes="sectnum">
2.7   
Literal Blocks
<list_item>
<paragraph>
- <reference ids="id45" refid="line-blocks">
+ <reference ids="id46" refid="line-blocks">
<generated classes="sectnum">
2.8   
Line Blocks
<list_item>
<paragraph>
- <reference ids="id46" refid="block-quotes">
+ <reference ids="id47" refid="block-quotes">
<generated classes="sectnum">
2.9   
Block Quotes
<list_item>
<paragraph>
- <reference ids="id47" refid="doctest-blocks">
+ <reference ids="id48" refid="doctest-blocks">
<generated classes="sectnum">
2.10   
Doctest Blocks
<list_item>
<paragraph>
- <reference ids="id48" refid="footnotes">
+ <reference ids="id49" refid="footnotes">
<generated classes="sectnum">
2.11   
Footnotes
<list_item>
<paragraph>
- <reference ids="id49" refid="citations">
+ <reference ids="id50" refid="citations">
<generated classes="sectnum">
2.12   
Citations
<list_item>
<paragraph>
- <reference ids="id50" refid="targets">
+ <reference ids="id51" refid="targets">
<generated classes="sectnum">
2.13   
Targets
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id51" refid="duplicate-target-names">
+ <reference ids="id52" refid="duplicate-target-names">
<generated classes="sectnum">
2.13.1   
Duplicate Target Names
<list_item>
<paragraph>
- <reference ids="id52" refid="id20">
+ <reference ids="id53" refid="id21">
<generated classes="sectnum">
2.13.2   
Duplicate Target Names
<list_item>
<paragraph>
- <reference ids="id53" refid="directives">
+ <reference ids="id54" refid="directives">
<generated classes="sectnum">
2.14   
Directives
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id54" refid="document-parts">
+ <reference ids="id55" refid="document-parts">
<generated classes="sectnum">
2.14.1   
Document Parts
<list_item>
<paragraph>
- <reference ids="id55" refid="images">
+ <reference ids="id56" refid="images">
<generated classes="sectnum">
2.14.2   
Images
<list_item>
<paragraph>
- <reference ids="id56" refid="admonitions">
+ <reference ids="id57" refid="admonitions">
<generated classes="sectnum">
2.14.3   
Admonitions
<list_item>
<paragraph>
- <reference ids="id57" refid="topics-sidebars-and-rubrics">
+ <reference ids="id58" refid="topics-sidebars-and-rubrics">
<generated classes="sectnum">
2.14.4   
Topics, Sidebars, and Rubrics
<list_item>
<paragraph>
- <reference ids="id58" refid="target-footnotes">
+ <reference ids="id59" refid="target-footnotes">
<generated classes="sectnum">
2.14.5   
Target Footnotes
<list_item>
<paragraph>
- <reference ids="id59" refid="replacement-text">
+ <reference ids="id60" refid="replacement-text">
<generated classes="sectnum">
2.14.6   
Replacement Text
<list_item>
<paragraph>
- <reference ids="id60" refid="compound-paragraph">
+ <reference ids="id61" refid="compound-paragraph">
<generated classes="sectnum">
2.14.7   
Compound Paragraph
<list_item>
<paragraph>
- <reference ids="id61" refid="parsed-literal-blocks">
+ <reference ids="id62" refid="parsed-literal-blocks">
<generated classes="sectnum">
2.14.8   
Parsed Literal Blocks
<list_item>
<paragraph>
- <reference ids="id62" refid="substitution-definitions">
+ <reference ids="id63" refid="substitution-definitions">
<generated classes="sectnum">
2.15   
Substitution Definitions
<list_item>
<paragraph>
- <reference ids="id63" refid="comments">
+ <reference ids="id64" refid="comments">
<generated classes="sectnum">
2.16   
Comments
<list_item>
<paragraph>
- <reference ids="id64" refid="raw-text">
+ <reference ids="id65" refid="raw-text">
<generated classes="sectnum">
2.17   
Raw text
<list_item>
<paragraph>
- <reference ids="id65" refid="container">
+ <reference ids="id66" refid="container">
<generated classes="sectnum">
2.18   
Container
<list_item>
<paragraph>
- <reference ids="id66" refid="colspanning-tables">
+ <reference ids="id67" refid="colspanning-tables">
<generated classes="sectnum">
2.19   
Colspanning tables
<list_item>
<paragraph>
- <reference ids="id67" refid="rowspanning-tables">
+ <reference ids="id68" refid="rowspanning-tables">
<generated classes="sectnum">
2.20   
Rowspanning tables
<list_item>
<paragraph>
- <reference ids="id68" refid="complex-tables">
+ <reference ids="id69" refid="complex-tables">
<generated classes="sectnum">
2.21   
Complex tables
<list_item>
<paragraph>
- <reference ids="id69" refid="list-tables">
+ <reference ids="id70" refid="list-tables">
<generated classes="sectnum">
2.22   
List Tables
<list_item>
<paragraph>
- <reference ids="id70" refid="error-handling">
+ <reference ids="id71" refid="error-handling">
<generated classes="sectnum">
3   
Error Handling
<section ids="structural-elements" names="structural\ elements">
- <title auto="1" refid="id32">
+ <title auto="1" refid="id33">
<generated classes="sectnum">
1   
Structural Elements
<section ids="section-title" names="section\ title">
- <title auto="1" refid="id33">
+ <title auto="1" refid="id34">
<generated classes="sectnum">
1.1   
Section Title
@@ -343,12 +343,12 @@
<paragraph>
That's it, the text just above this line.
<section ids="empty-section" names="empty\ section">
- <title auto="1" refid="id34">
+ <title auto="1" refid="id35">
<generated classes="sectnum">
1.2   
Empty Section
<section ids="transitions" names="transitions">
- <title auto="1" refid="id35">
+ <title auto="1" refid="id36">
<generated classes="sectnum">
1.3   
Transitions
@@ -359,19 +359,19 @@
It divides the section. Transitions may also occur between sections:
<transition>
<section ids="body-elements" names="body\ elements">
- <title auto="1" refid="id36">
+ <title auto="1" refid="id37">
<generated classes="sectnum">
2   
Body Elements
<section ids="paragraphs" names="paragraphs">
- <title auto="1" refid="id37">
+ <title auto="1" refid="id38">
<generated classes="sectnum">
2.1   
Paragraphs
<paragraph>
A paragraph.
<section ids="inline-markup" names="inline\ markup">
- <title auto="1" refid="id38">
+ <title auto="1" refid="id39">
<generated classes="sectnum">
2.1.1   
Inline Markup
@@ -393,7 +393,7 @@
<reference name="Python" refuri="http://www.python.org/">
Python
- <footnote_reference auto="1" ids="id26" refid="id25">
+ <footnote_reference auto="1" ids="id27" refid="id26">
5
), internal
cross-references (
@@ -408,26 +408,26 @@
anonymous hyperlink
references
- <footnote_reference auto="1" ids="id29" refid="id25">
+ <footnote_reference auto="1" ids="id30" refid="id26">
5
(
<reference anonymous="1" name="a second reference" refuri="http://docutils.sourceforge.net/">
a second reference
- <footnote_reference auto="1" ids="id31" refid="id30">
+ <footnote_reference auto="1" ids="id32" refid="id31">
6
), footnote references (manually
numbered
<footnote_reference ids="id1" refid="id8">
1
, anonymous auto-numbered
- <footnote_reference auto="1" ids="id2" refid="id11">
+ <footnote_reference auto="1" ids="id2" refid="id12">
3
, labeled auto-numbered
<footnote_reference auto="1" ids="id3" refid="label">
2
, or symbolic
- <footnote_reference auto="*" ids="id4" refid="id12">
+ <footnote_reference auto="*" ids="id4" refid="id13">
*
), citation references (
<citation_reference ids="id5" refid="cit2002">
@@ -440,7 +440,7 @@
inline hyperlink targets
(see
- <reference name="Targets" refid="id22">
+ <reference name="Targets" refid="id23">
Targets
below for a reference back to here). Character-level
inline markup is also possible (although exceedingly ugly!) in
@@ -451,7 +451,7 @@
<emphasis>
Text
. Problems are indicated by
- <problematic ids="id24" refid="id23">
+ <problematic ids="id25" refid="id24">
|problematic|
text
(generated by processing errors; this one is intentional). Here is a
@@ -510,7 +510,7 @@
option was supplied, there should be a
live link to PEP 258 here.
<section ids="bullet-lists" names="bullet\ lists">
- <title auto="1" refid="id39">
+ <title auto="1" refid="id40">
<generated classes="sectnum">
2.2   
Bullet Lists
@@ -554,7 +554,7 @@
<comment xml:space="preserve">
Even if this item contains a target and a comment.
<section ids="enumerated-lists" names="enumerated\ lists">
- <title auto="1" refid="id40">
+ <title auto="1" refid="id41">
<generated classes="sectnum">
2.3   
Enumerated Lists
@@ -603,7 +603,7 @@
<paragraph>
iv
<section ids="definition-lists" names="definition\ lists">
- <title auto="1" refid="id41">
+ <title auto="1" refid="id42">
<generated classes="sectnum">
2.4   
Definition Lists
@@ -641,7 +641,7 @@
<paragraph>
Definition
<section ids="field-lists" names="field\ lists">
- <title auto="1" refid="id42">
+ <title auto="1" refid="id43">
<generated classes="sectnum">
2.5   
Field Lists
@@ -675,7 +675,7 @@
about credits but just for ensuring that the class attribute
doesn't get stripped away.)
<section ids="option-lists" names="option\ lists">
- <title auto="1" refid="id43">
+ <title auto="1" refid="id44">
<generated classes="sectnum">
2.6   
Option Lists
@@ -788,7 +788,7 @@
There must be at least two spaces between the option and the
description.
<section ids="literal-blocks" names="literal\ blocks">
- <title auto="1" refid="id44">
+ <title auto="1" refid="id45">
<generated classes="sectnum">
2.7   
Literal Blocks
@@ -810,7 +810,7 @@
>
> Why didn't I think of that?
<section ids="line-blocks" names="line\ blocks">
- <title auto="1" refid="id45">
+ <title auto="1" refid="id46">
<generated classes="sectnum">
2.8   
Line Blocks
@@ -888,7 +888,7 @@
<line>
Singing...
<section ids="block-quotes" names="block\ quotes">
- <title auto="1" refid="id46">
+ <title auto="1" refid="id47">
<generated classes="sectnum">
2.9   
Block Quotes
@@ -904,7 +904,7 @@
<attribution>
Anne Elk (Miss)
<section ids="doctest-blocks" names="doctest\ blocks">
- <title auto="1" refid="id47">
+ <title auto="1" refid="id48">
<generated classes="sectnum">
2.10   
Doctest Blocks
@@ -914,11 +914,11 @@
>>> print '(cut and pasted from interactive Python sessions)'
(cut and pasted from interactive Python sessions)
<section ids="footnotes" names="footnotes">
- <title auto="1" refid="id48">
+ <title auto="1" refid="id49">
<generated classes="sectnum">
2.11   
Footnotes
- <footnote backrefs="id1 id9 id21" ids="id8" names="1">
+ <footnote backrefs="id1 id9 id22" ids="id8" names="1">
<label>
1
<paragraph>
@@ -939,12 +939,12 @@
footnote reference (
<footnote_reference auto="1" ids="id10" refid="label">
2
- ) and as a hyperlink reference
- (
- <reference name="label" refid="label">
- label
- ).
- <footnote auto="1" backrefs="id2" ids="id11" names="3">
+ ) and as a
+ <reference anonymous="1" name="hyperlink reference" refid="label">
+ hyperlink reference
+ .
+ <target anonymous="1" ids="id11" refid="label">
+ <footnote auto="1" backrefs="id2" ids="id12" names="3">
<label>
3
<paragraph>
@@ -954,35 +954,35 @@
This is the second paragraph.
<paragraph>
And this is the third paragraph.
- <footnote auto="*" backrefs="id4" ids="id12">
+ <footnote auto="*" backrefs="id4" ids="id13">
<label>
*
<paragraph>
Footnotes may also use symbols, specified with a "*" label.
Here's a reference to the next footnote:
- <footnote_reference auto="*" ids="id13" refid="id14">
+ <footnote_reference auto="*" ids="id14" refid="id15">
.
- <footnote auto="*" backrefs="id13" ids="id14">
+ <footnote auto="*" backrefs="id14" ids="id15">
<label>
<paragraph>
This footnote shows the next symbol in the sequence.
- <footnote ids="id15" names="4">
+ <footnote ids="id16" names="4">
<label>
4
<paragraph>
Here's an unreferenced footnote, with a reference to a
nonexistent footnote:
- <problematic ids="id80 id16" refid="id79">
+ <problematic ids="id81 id17" refid="id80">
[5]_
.
<section ids="citations" names="citations">
- <title auto="1" refid="id49">
+ <title auto="1" refid="id50">
<generated classes="sectnum">
2.12   
Citations
- <citation backrefs="id5 id17" ids="cit2002" names="cit2002">
+ <citation backrefs="id5 id18" ids="cit2002" names="cit2002">
<label>
CIT2002
<paragraph>
@@ -990,16 +990,16 @@
rendered separately and differently from footnotes.
<paragraph>
Here's a reference to the above,
- <citation_reference ids="id17" refid="cit2002">
+ <citation_reference ids="id18" refid="cit2002">
CIT2002
, and a
- <problematic ids="id82 id18" refid="id81">
+ <problematic ids="id83 id19" refid="id82">
[nonexistent]_
citation.
<target refid="another-target">
<section dupnames="targets" ids="targets another-target" names="another\ target">
- <title auto="1" refid="id50">
+ <title auto="1" refid="id51">
<generated classes="sectnum">
2.13   
Targets
@@ -1016,7 +1016,7 @@
are also possible.
<paragraph>
Section headers are implicit targets, referred to by name. See
- <reference name="Targets" refid="id22">
+ <reference name="Targets" refid="id23">
Targets
, which is a subsection of
<reference name="Body Elements" refid="body-elements">
@@ -1028,28 +1028,28 @@
<reference name="Python" refuri="http://www.python.org/">
Python
- <footnote_reference auto="1" ids="id27" refid="id25">
+ <footnote_reference auto="1" ids="id28" refid="id26">
5
".
<target ids="python" names="python" refuri="http://www.python.org/">
<paragraph>
Targets may be indirect and anonymous. Thus
- <reference anonymous="1" name="this phrase" refid="id22">
+ <reference anonymous="1" name="this phrase" refid="id23">
this phrase
may also
refer to the
- <reference name="Targets" refid="id22">
+ <reference name="Targets" refid="id23">
Targets
section.
- <target anonymous="1" ids="id19" refid="id22">
+ <target anonymous="1" ids="id20" refid="id23">
<paragraph>
Here's a
- <problematic ids="id84" refid="id83">
+ <problematic ids="id85" refid="id84">
`hyperlink reference without a target`_
, which generates an
error.
<section dupnames="duplicate\ target\ names" ids="duplicate-target-names">
- <title auto="1" refid="id51">
+ <title auto="1" refid="id52">
<generated classes="sectnum">
2.13.1   
Duplicate Target Names
@@ -1057,8 +1057,8 @@
Duplicate names in section headers or other implicit targets will
generate "info" (level-1) system messages. Duplicate names in
explicit targets will generate "warning" (level-2) system messages.
- <section dupnames="duplicate\ target\ names" ids="id20">
- <title auto="1" refid="id52">
+ <section dupnames="duplicate\ target\ names" ids="id21">
+ <title auto="1" refid="id53">
<generated classes="sectnum">
2.13.2   
Duplicate Target Names
@@ -1066,11 +1066,11 @@
Since there are two "Duplicate Target Names" section headers, we
cannot uniquely refer to either of them by name. If we try to (like
this:
- <problematic ids="id86" refid="id85">
+ <problematic ids="id87" refid="id86">
`Duplicate Target Names`_
), an error is generated.
<section ids="directives" names="directives">
- <title auto="1" refid="id53">
+ <title auto="1" refid="id54">
<generated classes="sectnum">
2.14   
Directives
@@ -1078,49 +1078,49 @@
<bullet_list classes="auto-toc">
<list_item>
<paragraph>
- <reference ids="id71" refid="document-parts">
+ <reference ids="id72" refid="document-parts">
<generated classes="sectnum">
2.14.1   
Document Parts
<list_item>
<paragraph>
- <reference ids="id72" refid="images">
+ <reference ids="id73" refid="images">
<generated classes="sectnum">
2.14.2   
Images
<list_item>
<paragraph>
- <reference ids="id73" refid="admonitions">
+ <reference ids="id74" refid="admonitions">
<generated classes="sectnum">
2.14.3   
Admonitions
<list_item>
<paragraph>
- <reference ids="id74" refid="topics-sidebars-and-rubrics">
+ <reference ids="id75" refid="topics-sidebars-and-rubrics">
<generated classes="sectnum">
2.14.4   
Topics, Sidebars, and Rubrics
<list_item>
<paragraph>
- <reference ids="id75" refid="target-footnotes">
+ <reference ids="id76" refid="target-footnotes">
<generated classes="sectnum">
2.14.5   
Target Footnotes
<list_item>
<paragraph>
- <reference ids="id76" refid="replacement-text">
+ <reference ids="id77" refid="replacement-text">
<generated classes="sectnum">
2.14.6   
Replacement Text
<list_item>
<paragraph>
- <reference ids="id77" refid="compound-paragraph">
+ <reference ids="id78" refid="compound-paragraph">
<generated classes="sectnum">
2.14.7   
Compound Paragraph
<list_item>
<paragraph>
- <reference ids="id78" refid="parsed-literal-blocks">
+ <reference ids="id79" refid="parsed-literal-blocks">
<generated classes="sectnum">
2.14.8   
Parsed Literal Blocks
@@ -1131,7 +1131,7 @@
http://docutils.sourceforge.net/docs/ref/rst/directives.html
.
<section ids="document-parts" names="document\ parts">
- <title auto="1" refid="id71">
+ <title auto="1" refid="id72">
<generated classes="sectnum">
2.14.1   
Document Parts
@@ -1146,7 +1146,7 @@
table of contents
).
<section ids="images" names="images">
- <title auto="1" refid="id72">
+ <title auto="1" refid="id73">
<generated classes="sectnum">
2.14.2   
Images
@@ -1254,7 +1254,7 @@
An image 3 cm high:
<image height="3cm" uri="../../../docs/user/rst/images/biohazard.png">
<section ids="admonitions" names="admonitions">
- <title auto="1" refid="id73">
+ <title auto="1" refid="id74">
<generated classes="sectnum">
2.14.3   
Admonitions
@@ -1304,7 +1304,7 @@
You can make up your own admonition too.
<target ids="docutils" names="docutils" refuri="http://docutils.sourceforge.net/">
<section ids="topics-sidebars-and-rubrics" names="topics,\ sidebars,\ and\ rubrics">
- <title auto="1" refid="id74">
+ <title auto="1" refid="id75">
<generated classes="sectnum">
2.14.4   
Topics, Sidebars, and Rubrics
@@ -1329,24 +1329,24 @@
<rubric>
This is a rubric
<section ids="target-footnotes" names="target\ footnotes">
- <title auto="1" refid="id75">
+ <title auto="1" refid="id76">
<generated classes="sectnum">
2.14.5   
Target Footnotes
- <footnote auto="1" backrefs="id26 id27 id28 id29" ids="id25" names="TARGET_NOTE:\ id25">
+ <footnote auto="1" backrefs="id27 id28 id29 id30" ids="id26" names="TARGET_NOTE:\ id26">
<label>
5
<paragraph>
<reference refuri="http://www.python.org/">
http://www.python.org/
- <footnote auto="1" backrefs="id31" ids="id30" names="TARGET_NOTE:\ id30">
+ <footnote auto="1" backrefs="id32" ids="id31" names="TARGET_NOTE:\ id31">
<label>
6
<paragraph>
<reference refuri="http://docutils.sourceforge.net/">
http://docutils.sourceforge.net/
<section ids="replacement-text" names="replacement\ text">
- <title auto="1" refid="id76">
+ <title auto="1" refid="id77">
<generated classes="sectnum">
2.14.6   
Replacement Text
@@ -1358,7 +1358,7 @@
the
best language around
- <footnote_reference auto="1" ids="id28" refid="id25">
+ <footnote_reference auto="1" ids="id29" refid="id26">
5
.
<substitution_definition names="Python">
@@ -1367,7 +1367,7 @@
the
best language around
<section ids="compound-paragraph" names="compound\ paragraph">
- <title auto="1" refid="id77">
+ <title auto="1" refid="id78">
<generated classes="sectnum">
2.14.7   
Compound Paragraph
@@ -1453,7 +1453,7 @@
<paragraph>
Compound 7, another paragraph.
<section ids="parsed-literal-blocks" names="parsed\ literal\ blocks">
- <title auto="1" refid="id78">
+ <title auto="1" refid="id79">
<generated classes="sectnum">
2.14.8   
Parsed Literal Blocks
@@ -1472,10 +1472,10 @@
literal
text
, footnotes
- <footnote_reference ids="id21" refid="id8">
+ <footnote_reference ids="id22" refid="id8">
1
,
- <target ids="id22" names="targets">
+ <target ids="id23" names="targets">
targets
, and
<reference name="references" refuri="http://www.python.org/">
@@ -1483,7 +1483,7 @@
<target ids="references" names="references" refuri="http://www.python.org/">
.
<section ids="substitution-definitions" names="substitution\ definitions">
- <title auto="1" refid="id62">
+ <title auto="1" refid="id63">
<generated classes="sectnum">
2.15   
Substitution Definitions
@@ -1496,7 +1496,7 @@
<paragraph>
(Substitution definitions are not visible in the HTML source.)
<section ids="comments" names="comments">
- <title auto="1" refid="id63">
+ <title auto="1" refid="id64">
<generated classes="sectnum">
2.16   
Comments
@@ -1513,7 +1513,7 @@
<paragraph>
(View the HTML source to see the comment.)
<section ids="raw-text" names="raw\ text">
- <title auto="1" refid="id64">
+ <title auto="1" refid="id65">
<generated classes="sectnum">
2.17   
Raw text
@@ -1537,7 +1537,7 @@
<raw format="latex" xml:space="preserve">
Fifth test in LaTeX.\\Line two.
<section ids="container" names="container">
- <title auto="1" refid="id65">
+ <title auto="1" refid="id66">
<generated classes="sectnum">
2.18   
Container
@@ -1547,7 +1547,7 @@
<paragraph>
paragraph 2
<section ids="colspanning-tables" names="colspanning\ tables">
- <title auto="1" refid="id66">
+ <title auto="1" refid="id67">
<generated classes="sectnum">
2.19   
Colspanning tables
@@ -1618,7 +1618,7 @@
<paragraph>
True
<section ids="rowspanning-tables" names="rowspanning\ tables">
- <title auto="1" refid="id67">
+ <title auto="1" refid="id68">
<generated classes="sectnum">
2.20   
Rowspanning tables
@@ -1670,7 +1670,7 @@
<paragraph>
body row 3
<section ids="complex-tables" names="complex\ tables">
- <title auto="1" refid="id68">
+ <title auto="1" refid="id69">
<generated classes="sectnum">
2.21   
Complex tables
@@ -1755,7 +1755,7 @@
-->
<entry>
<section ids="list-tables" names="list\ tables">
- <title auto="1" refid="id69">
+ <title auto="1" refid="id70">
<generated classes="sectnum">
2.22   
List Tables
@@ -1812,7 +1812,7 @@
<paragraph>
On a stick!
<section ids="error-handling" names="error\ handling">
- <title auto="1" refid="id70">
+ <title auto="1" refid="id71">
<generated classes="sectnum">
3   
Error Handling
@@ -1826,18 +1826,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="id25" ids="id24" level="3" line="100" source="functional/input/data/standard.txt" type="ERROR">
<paragraph>
Undefined substitution referenced: "problematic".
- <system_message backrefs="id80" ids="id79" level="3" line="358" source="functional/input/standalone_rst_pseudoxml.txt" type="ERROR">
+ <system_message backrefs="id81" ids="id80" level="3" line="359" source="functional/input/standalone_rst_pseudoxml.txt" type="ERROR">
<paragraph>
Unknown target name: "5".
- <system_message backrefs="id82" ids="id81" level="3" line="367" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id83" ids="id82" level="3" line="368" source="functional/input/data/standard.txt" type="ERROR">
<paragraph>
Unknown target name: "nonexistent".
- <system_message backrefs="id84" ids="id83" level="3" line="394" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id85" ids="id84" level="3" line="395" 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="407" source="functional/input/data/standard.txt" type="ERROR">
+ <system_message backrefs="id87" ids="id86" level="3" line="408" 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 a7e7a9b41..7e63afd69 100644
--- a/docutils/test/functional/input/data/standard.txt
+++ b/docutils/test/functional/input/data/standard.txt
@@ -338,8 +338,9 @@ Footnotes
.. [#label] Footnotes may be numbered, either manually (as in [1]_) or
automatically using a "#"-prefixed label. This footnote has a
label so it can be referred to from multiple places, both as a
- footnote reference ([#label]_) and as a hyperlink reference
- (label_).
+ footnote reference ([#label]_) and as a `hyperlink reference`__.
+
+ __ label_
.. [#] This footnote is numbered automatically and anonymously using a
label of "#" only.