summaryrefslogtreecommitdiff
path: root/docutils/test/functional/expected
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2016-07-30 22:05:13 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2016-07-30 22:05:13 +0000
commit492f384dea48c9c7eeaf30101390ae12474978d2 (patch)
tree2ca6e5c7244fc6e9f84d8bd6fa60086628e9fc11 /docutils/test/functional/expected
parent396b50455a2bb89c303324927ea89ec088b45c5f (diff)
downloaddocutils-492f384dea48c9c7eeaf30101390ae12474978d2.tar.gz
Support tables with auto-sized column widths in html_plain and latex2e writers.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7962 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/functional/expected')
-rw-r--r--docutils/test/functional/expected/standalone_rst_html_plain.html37
-rw-r--r--docutils/test/functional/expected/standalone_rst_latex.tex14
2 files changed, 23 insertions, 28 deletions
diff --git a/docutils/test/functional/expected/standalone_rst_html_plain.html b/docutils/test/functional/expected/standalone_rst_html_plain.html
index 2365b6a62..5c47cfa2d 100644
--- a/docutils/test/functional/expected/standalone_rst_html_plain.html
+++ b/docutils/test/functional/expected/standalone_rst_html_plain.html
@@ -1235,8 +1235,8 @@ For complete control over display options use raw HTML.</p>
<h1><a class="toc-backref" href="#id80"><span class="sectnum">3</span> Changes to the html4css1 writer</a></h1>
<ul class="simple">
<li><p>Use only meta keywords recognized by HTML 5.</p></li>
-<li><p>Style table column widths with CSS rule, not &quot;width&quot; argument.</p></li>
-<li><p>Vertical alignment of table heads with CSS.</p></li>
+<li><p>Set table column widths with &lt;style=&quot;width: ...&quot;&gt;, not &quot;width&quot; argument.</p></li>
+<li><p>Horizontal alignment of table heads with CSS.</p></li>
<li><p>Field lists as styled definition lists.</p></li>
<li><p>Do not drop paragraph objects, use CSS rules to prevent unwanted vertical
space.</p></li>
@@ -1377,7 +1377,8 @@ body is wrapped and aligns with other fields.</p>
<p>The following styles can be applied to individual tables via a class
argument or as document wide setting with the <a class="reference external" href="http://docutils.sourceforge.net/docs/user/config.html#table-style">table-style</a> <a class="footnote-reference brackets" href="#id31" id="id32">7</a> configuration
setting (or command line argument).</p>
-<p>Numbered tables can be achieved with the &quot;numbered&quot; class option</p>
+<ul>
+<li><p>Numbered tables can be achieved with the &quot;numbered&quot; class option:</p>
<table class="numbered">
<caption>truth values</caption>
<colgroup>
@@ -1412,14 +1413,10 @@ setting (or command line argument).</p>
</table>
<p>Currently, referencing to the table by number is not supported. This is a
common request and already on the <cite>TODO list</cite>.</p>
-<p>A table with &quot;booktabs&quot; class argument, is rendered similar to the style
-from the <a class="reference external" href="http://tug.ctan.org/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf">booktabs</a> <a class="footnote-reference brackets" href="#id33" id="id34">8</a> LaTeX package.</p>
-<table class="booktabs">
-<colgroup>
-<col style="width: 29%" />
-<col style="width: 29%" />
-<col style="width: 41%" />
-</colgroup>
+</li>
+<li><p>With the &quot;widths&quot; argument &quot;auto&quot; (or &quot;class&quot; value &quot;colwidths-auto&quot;),
+column widths are determined by the browser.</p>
+<table class="colwidths-auto">
<thead>
<tr><th class="head"><p>A</p></th>
<th class="head"><p>B</p></th>
@@ -1445,16 +1442,17 @@ from the <a class="reference external" href="http://tug.ctan.org/tex-archive/mac
</tr>
</tbody>
</table>
-<p>&quot;Booktabs&quot; style table, numbered and centre-aligned:</p>
-<table class="numbered booktabs align-center">
+</li>
+<li><p>A table with &quot;booktabs&quot; class value, is rendered similar to the style
+from the <a class="reference external" href="http://tug.ctan.org/tex-archive/macros/latex/contrib/booktabs/booktabs.pdf">booktabs</a> <a class="footnote-reference brackets" href="#id33" id="id34">8</a> LaTeX package.</p>
+</li>
+</ul>
+<p>&quot;Booktabs&quot; style table, numbered, centre-aligned, with auto-sized columns:</p>
+<blockquote>
+<table class="booktabs numbered colwidths-auto align-center">
<caption>I/O values</caption>
-<colgroup>
-<col style="width: 31%" />
-<col style="width: 31%" />
-<col style="width: 38%" />
-</colgroup>
<thead>
-<tr><th class="head" colspan="2"><p>Inputs</p></th>
+<tr><th class="head" colspan="2"><p>Input</p></th>
<th class="head"><p>Output</p></th>
</tr>
<tr><th class="head"><p>A</p></th>
@@ -1481,6 +1479,7 @@ from the <a class="reference external" href="http://tug.ctan.org/tex-archive/mac
</tr>
</tbody>
</table>
+</blockquote>
</div>
</div>
</div>
diff --git a/docutils/test/functional/expected/standalone_rst_latex.tex b/docutils/test/functional/expected/standalone_rst_latex.tex
index 2f0742c27..b978cb4ba 100644
--- a/docutils/test/functional/expected/standalone_rst_latex.tex
+++ b/docutils/test/functional/expected/standalone_rst_latex.tex
@@ -1875,14 +1875,12 @@ Short multicolumn 4
Tables with multi-paragraph multirow cells currently fail due to a LaTeX
limitation (see \url{https://sourceforge.net/p/docutils/bugs/225/}).
-A table with multirow header:
-%
-\begin{quote}
+A table with multirow header and column-widths set by LaTeX:
\setlength{\DUtablewidth}{\linewidth}
-\begin{longtable*}[c]{|p{0.156\DUtablewidth}|p{0.238\DUtablewidth}|}
+\begin{longtable*}[c]{|l|l|}
\hline
-\multirow{2}{0.16\DUtablewidth}{%
+\multirow{2}{*}{%
\textbf{%
XXX
}} & \textbf{%
@@ -1895,7 +1893,7 @@ Description
\hline
\endfirsthead
\hline
-\multirow{2}{0.16\DUtablewidth}{%
+\multirow{2}{*}{%
\textbf{%
XXX
}} & \textbf{%
@@ -1910,14 +1908,12 @@ Description
\multicolumn{2}{c}{\hfill ... continued on next page} \\
\endfoot
\endlastfoot
-\multicolumn{2}{|p{0.39\DUtablewidth}|}{
+\multicolumn{2}{|l|}{
multicollumn cell
} \\
\hline
\end{longtable*}
-\end{quote}
-
% This file is used by the standalone_rst_latex test.