diff options
| author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-05-29 12:51:35 +0000 |
|---|---|---|
| committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2005-05-29 12:51:35 +0000 |
| commit | 127c522148c2ff7566f1868116a6c3d0f5ae02b8 (patch) | |
| tree | 1cadd1cc14cec2ef2b58741b903d21e26300842e /docutils | |
| parent | bb008d4df35ab1b443a32cf5aca07dc769a5313c (diff) | |
| download | docutils-127c522148c2ff7566f1868116a6c3d0f5ae02b8.tar.gz | |
added functional test for image with multiple IDs;
somethings *really* broken there, both in the transforms and in the HTML writer
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3410 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
4 files changed, 20 insertions, 1 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html4css1.html b/docutils/test/functional/expected/standalone_rst_html4css1.html index 928fb8801..abfdcbfe7 100644 --- a/docutils/test/functional/expected/standalone_rst_html4css1.html +++ b/docutils/test/functional/expected/standalone_rst_html4css1.html @@ -546,7 +546,9 @@ document (a document-wide <a class="reference" href="#table-of-contents">table o <h3><a class="toc-backref" href="#id63" name="images">2.14.2 Images</a></h3> <p>An image directive (also clickable -- a hyperlink reference):</p> <div class="image class1 class2 image-reference"><a class="reference" href="#directives"><img alt="../../../docs/user/rst/images/title.png" class="class1 class2" src="../../../docs/user/rst/images/title.png" /></a></div> -<p>A figure directive:</p> +<p>Image with multiple IDs:</p> +<div class="image"><img alt="../../../docs/user/rst/images/title.png" refid="image-target-3" src="../../../docs/user/rst/images/title.png" /></div> +<p id="image-target-3"><span id="image-target-2"></span><span id="image-target-1"></span>A figure directive:</p> <div align="right" class="figclass1 figclass2 figure"> <div class="image class1 class2"><img alt="reStructuredText, the markup syntax" class="class1 class2" src="../../../docs/user/rst/images/biohazard.png" width="50" /></div> <p class="caption">A figure is an image with a caption and/or a legend:</p> diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex index ec682aa52..3abaf8a9e 100644 --- a/docutils/test/functional/expected/standalone_rst_latex.tex +++ b/docutils/test/functional/expected/standalone_rst_latex.tex @@ -865,6 +865,10 @@ document (a document-wide \href{\#table-of-contents}{table of contents}). An image directive (also clickable -{}- a hyperlink reference): \href{\#directives}{\includegraphics{../../../docs/user/rst/images/title.png}} +Image with multiple IDs: + +\includegraphics{../../../docs/user/rst/images/title.png} + A figure directive: \begin{figure}[htbp]\begin{center} diff --git a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt index 1c21abc9a..b1cce6c09 100644 --- a/docutils/test/functional/expected/standalone_rst_pseudoxml.txt +++ b/docutils/test/functional/expected/standalone_rst_pseudoxml.txt @@ -1123,6 +1123,12 @@ <reference name="directives_" refid="directives"> <image classes="class1 class2" uri="../../../docs/user/rst/images/title.png"> <paragraph> + Image with multiple IDs: + <target refid="image-target-1"> + <target refid="image-target-2"> + <target refid="image-target-3"> + <image refid="image-target-3" uri="../../../docs/user/rst/images/title.png"> + <paragraph ids="image-target-3 image-target-2 image-target-1" names="image target 3 image target 2 image target 1"> A figure directive: <figure align="right" classes="figclass1 figclass2"> <image alt="reStructuredText, the markup syntax" classes="class1 class2" uri="../../../docs/user/rst/images/biohazard.png" width="50"> diff --git a/docutils/test/functional/input/data/standard.txt b/docutils/test/functional/input/data/standard.txt index a4a75b078..cfcc6e7f7 100644 --- a/docutils/test/functional/input/data/standard.txt +++ b/docutils/test/functional/input/data/standard.txt @@ -427,6 +427,13 @@ An image directive (also clickable -- a hyperlink reference): :class: class1 class2 :target: directives_ +Image with multiple IDs: + +.. _image target 1: +.. _image target 2: +.. _image target 3: +.. image:: ../../../docs/user/rst/images/title.png + A figure directive: .. figure:: ../../../docs/user/rst/images/biohazard.png |
