SF.net SVN: docutils:[9643 ] trunk/docutils/test/funct ional
milde--- via Docutils-checkins <[email protected]>
| Newsgroups | gmane.text.docutils.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 9643
http://sourceforge.net/p/docutils/code/9643
Author: milde
Date: 2024-04-15 12:27:49 +0000 (Mon, 15 Apr 2024)
Log Message:
-----------
Make effect of centre-aligning figures visible in functional HTML text.
Horizontal figure alignment is irrelevant if the figure is full-width.
The figure content is left-aligned with the default styles.
Change the functional test input by specifying 40% figure width to the
example of a centre-aligned figure.
Note: figure alignment is ignored with LaTeX output, figures are
centre-aligned by default (depends on LaTeX packages/documentclass).
Modified Paths:
--------------
trunk/docutils/test/functional/expected/latex_memoir.tex
trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
trunk/docutils/test/functional/expected/standalone_rst_html5.html
trunk/docutils/test/functional/expected/standalone_rst_latex.tex
trunk/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
trunk/docutils/test/functional/expected/standalone_rst_xetex.tex
trunk/docutils/test/functional/input/data/standard.txt
Modified: trunk/docutils/test/functional/expected/latex_memoir.tex
===================================================================
--- trunk/docutils/test/functional/expected/latex_memoir.tex 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/latex_memoir.tex 2024-04-15 12:27:49 UTC (rev 9643)
@@ -920,7 +920,7 @@
The specific behavior depends upon the style sheet and the browser or
rendering software used.
-A centered figure:
+A centred figure, 40\% wide:
\begin{figure}
\noindent\makebox[\linewidth][c]{\includegraphics[width=40px]{../../../docs/user/rst/images/biohazard.png}}
Modified: trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/standalone_rst_docutils_xml.xml 2024-04-15 12:27:49 UTC (rev 9643)
@@ -910,8 +910,8 @@
<paragraph>This paragraph might flow around the figure.</paragraph>
<paragraph>The specific behavior depends upon the style sheet and the browser or
rendering software used.</paragraph>
- <paragraph>A centered figure:</paragraph>
- <figure align="center">
+ <paragraph>A centred figure, 40% wide:</paragraph>
+ <figure align="center" width="40%">
<image uri="../../../docs/user/rst/images/biohazard.png" width="40px"></image>
<caption>This is the caption.</caption>
<legend>
@@ -1792,16 +1792,16 @@
<system_message level="1" line="476" source="functional/input/data/standard.txt" type="INFO">
<paragraph>Hyperlink target "image-target-3" is not referenced.</paragraph>
</system_message>
- <system_message level="1" line="639" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="640" source="functional/input/data/standard.txt" type="INFO">
<paragraph>Hyperlink target "target1" is not referenced.</paragraph>
</system_message>
- <system_message level="1" line="640" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="641" source="functional/input/data/standard.txt" type="INFO">
<paragraph>Hyperlink target "target2" is not referenced.</paragraph>
</system_message>
- <system_message level="1" line="685" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="686" source="functional/input/data/standard.txt" type="INFO">
<paragraph>Hyperlink target "docutils" is not referenced.</paragraph>
</system_message>
- <system_message level="1" line="851" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="852" source="functional/input/data/standard.txt" type="INFO">
<paragraph>Hyperlink target "hyperlink targets" is not referenced.</paragraph>
</system_message>
</section>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2024-04-15 12:27:49 UTC (rev 9643)
@@ -652,8 +652,8 @@
<p>This paragraph might flow around the figure.</p>
<p>The specific behavior depends upon the style sheet and the browser or
rendering software used.</p>
-<p>A centered figure:</p>
-<div class="figure align-center">
+<p>A centred figure, 40% wide:</p>
+<div class="figure align-center" style="width: 40%">
<img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="width: 40px;" />
<p class="caption">This is the caption.</p>
<div class="legend">
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2024-04-15 12:27:49 UTC (rev 9643)
@@ -650,8 +650,8 @@
<p>This paragraph might flow around the figure.</p>
<p>The specific behavior depends upon the style sheet and the browser or
rendering software used.</p>
-<p>A centered figure:</p>
-<figure class="align-center">
+<p>A centred figure, 40% wide:</p>
+<figure class="align-center" style="width: 40%">
<img alt="../../../docs/user/rst/images/biohazard.png" src="../../../docs/user/rst/images/biohazard.png" style="width: 40px;" />
<figcaption>
<p>This is the caption.</p>
Modified: trunk/docutils/test/functional/expected/standalone_rst_latex.tex
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_latex.tex 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/standalone_rst_latex.tex 2024-04-15 12:27:49 UTC (rev 9643)
@@ -921,7 +921,7 @@
The specific behavior depends upon the style sheet and the browser or
rendering software used.
-A centered figure:
+A centred figure, 40\% wide:
\begin{figure}
\noindent\makebox[\linewidth][c]{\includegraphics[width=40px]{../../../docs/user/rst/images/biohazard.png}}
Modified: trunk/docutils/test/functional/expected/standalone_rst_pseudoxml.txt
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_pseudoxml.txt 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/standalone_rst_pseudoxml.txt 2024-04-15 12:27:49 UTC (rev 9643)
@@ -1387,8 +1387,8 @@
The specific behavior depends upon the style sheet and the browser or
rendering software used.
<paragraph>
- A centered figure:
- <figure align="center">
+ A centred figure, 40% wide:
+ <figure align="center" width="40%">
<image uri="../../../docs/user/rst/images/biohazard.png" width="40px">
<caption>
This is the caption.
@@ -2425,15 +2425,15 @@
<system_message level="1" line="476" source="functional/input/data/standard.txt" type="INFO">
<paragraph>
Hyperlink target "image-target-3" is not referenced.
- <system_message level="1" line="639" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="640" source="functional/input/data/standard.txt" type="INFO">
<paragraph>
Hyperlink target "target1" is not referenced.
- <system_message level="1" line="640" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="641" source="functional/input/data/standard.txt" type="INFO">
<paragraph>
Hyperlink target "target2" is not referenced.
- <system_message level="1" line="685" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="686" source="functional/input/data/standard.txt" type="INFO">
<paragraph>
Hyperlink target "docutils" is not referenced.
- <system_message level="1" line="851" source="functional/input/data/standard.txt" type="INFO">
+ <system_message level="1" line="852" source="functional/input/data/standard.txt" type="INFO">
<paragraph>
Hyperlink target "hyperlink targets" is not referenced.
Modified: trunk/docutils/test/functional/expected/standalone_rst_xetex.tex
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_xetex.tex 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/expected/standalone_rst_xetex.tex 2024-04-15 12:27:49 UTC (rev 9643)
@@ -956,7 +956,7 @@
The specific behavior depends upon the style sheet and the browser or
rendering software used.
-A centered figure:
+A centred figure, 40\% wide:
\begin{figure}
\noindent\makebox[\linewidth][c]{\includegraphics[width=40\pdfpxdimen]{../../../docs/user/rst/images/biohazard.png}}
Modified: trunk/docutils/test/functional/input/data/standard.txt
===================================================================
--- trunk/docutils/test/functional/input/data/standard.txt 2024-04-15 12:27:35 UTC (rev 9642)
+++ trunk/docutils/test/functional/input/data/standard.txt 2024-04-15 12:27:49 UTC (rev 9643)
@@ -561,11 +561,12 @@
The specific behavior depends upon the style sheet and the browser or
rendering software used.
-A centered figure:
+A centred figure, 40% wide:
.. figure:: ../../../docs/user/rst/images/biohazard.png
:align: center
:width: 40 px
+ :figwidth: 40%
This is the caption.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.