|
From: <mi...@us...> - 2021-10-01 13:39:36
|
Revision: 8836
http://sourceforge.net/p/docutils/code/8836
Author: milde
Date: 2021-10-01 13:39:33 +0000 (Fri, 01 Oct 2021)
Log Message:
-----------
HTML5: New default for table column widths (fixes bug #426).
Only specify table column widths, if the "widths" option is set
and is not "auto".
The `table_style`_ setting "colwidths-grid" restores the
current default.
Modified Paths:
--------------
trunk/docutils/HISTORY.txt
trunk/docutils/RELEASE-NOTES.txt
trunk/docutils/docs/ref/rst/directives.txt
trunk/docutils/docs/user/config.txt
trunk/docutils/docutils/writers/_html_base.py
trunk/docutils/docutils/writers/latex2e/__init__.py
trunk/docutils/test/functional/expected/footnotes_html5.html
trunk/docutils/test/functional/expected/latex_memoir.tex
trunk/docutils/test/functional/expected/math_output_html.html
trunk/docutils/test/functional/expected/math_output_latex.html
trunk/docutils/test/functional/expected/math_output_mathjax.html
trunk/docutils/test/functional/expected/math_output_mathml.html
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_xetex.tex
trunk/docutils/test/functional/input/data/math.txt
trunk/docutils/test/test_writers/test_html5_polyglot_parts.py
Modified: trunk/docutils/HISTORY.txt
===================================================================
--- trunk/docutils/HISTORY.txt 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/HISTORY.txt 2021-10-01 13:39:33 UTC (rev 8836)
@@ -26,7 +26,7 @@
__ docs/ref/doctree.html#meta
- - document.make_id(): Keep leading number and hyphen characters
+ - document.make_id(): Do not strip leading number and hyphen characters
from `name` if the id_prefix setting is non-empty.
- ``Node.traverse()`` returns an iterator instead of a list.
@@ -44,7 +44,7 @@
* docutils/parsers/rst/directives/tables.py:
- - Unify behaviour of "widths" option: check that the lenght of an
+ - Unify behaviour of `"widths" option`_: check that the lenght of an
integer list equals the number of table columns also for the "table"
directive.
@@ -86,6 +86,13 @@
and system-messages and <nav> for the table of contents. Use <div>
for citations.
+ - Only specify table column widths, if the `"widths" option`_ is set
+ and is not "auto" (fixes bug #426).
+ The `table_style`_ setting "colwidths-grid" restores the current default.
+
+ .. _"widths" option: docs/ref/rst/directives.html#column-widths
+ .. _table_style: docs/user/config.html#table-style
+
- Use ARIA roles to enable accessible HTML for abstract, dedication,
the table of contents, footnote, references, footnotes, citations,
and backlinks.
@@ -98,6 +105,10 @@
Use class value "backrefs" instead of "fn-backref" for a span of
back-references.
+ - Do not write class values handled by the HTML writer
+ ("colwidths-auto", "colwidths-given", "colwidths-grid") to the
+ output.
+
- Move space character between section number and heading into
"sectnum" span.
@@ -106,6 +117,7 @@
- Items of a definition list with class argument "details" are
converted to `details disclosure elements`.
+
* docutils/writers/html4css1/__init__.py:
- Overwrite methods in _html_base.HTMLTranslator that use HTM5 tags
Modified: trunk/docutils/RELEASE-NOTES.txt
===================================================================
--- trunk/docutils/RELEASE-NOTES.txt 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/RELEASE-NOTES.txt 2021-10-01 13:39:33 UTC (rev 8836)
@@ -27,17 +27,6 @@
``[role="doc-noteref"]`` instead of ``.footnote-reference``
(see minimal.css for examples).
- - Do not specify relative column widths with the
- deprecated ``<colgroup><col width="...">...``.
-
- The `html5` writer will default to ``:widths: auto`` and use
- ``style="width: ..%"`` if the `"widths" option`__ is used.
- Use the table-style__ setting with value "colwidths-grid" to
- keep the current default.
-
- __ docs/ref/rst/directives.html#table
- __ docs/user/config.html#table-style
-
- Move attribution behind the blockquote to comply with the
`"living standard"`__?
(HTML5__ allows <cite> elements inside a blockquote, cf. Example 16.)
@@ -91,9 +80,9 @@
* Output changes:
Identifiers:
- If the id_prefix_ setting is non-empty, leading number and hyphen
- characters will not be stripped from a `reference name`_ during
- `identifier normalization`_.
+ During `identifier normalization`_, leading number and hyphen
+ characters are no longer stripped from a `reference name`_, if the
+ id_prefix_ setting is non-empty.
Example:
with ``--id-prefix="DU-"``, a section with title "34. May"
@@ -100,18 +89,30 @@
currently gets the identifier key ``DU-may`` and after the
change the identifier key ``DU-34-may``.
- The default value for the auto_id_prefix_ setting changed to "%":
- use the tag name as prefix for auto-generated IDs.
- Set auto_id_prefix_ to "id" if you want unchanged auto-IDs.
+ The default value for the auto_id_prefix_ setting changed to ``%``:
+ "use the tag name as prefix for auto-generated IDs".
+ Set auto_id_prefix_ to ``id`` for unchanged auto-IDs.
HTML5:
- Write footnote brackets and field term colons to HTML, so that they
- are present also without CSS and when copying text.
-
- Use semantic tag <aside> for footnote text and citations,
- topics (except abstract and toc), admonitions, and system messages
+ Use the semantic tag <aside> for footnote text and citations, topics
+ (except abstract and toc), admonitions, and system messages.
Use <nav> for the Table of Contents.
+
+ Make "auto" table column widths the default: Only specify column
+ widths, if the `"widths" option`_ is set and not "auto".
+ The table-style__ setting "colwidths-grid" restores the current default.
+ .. _"widths" option: __ docs/ref/rst/directives.html#table
+ __ docs/user/config.html#table-style
+
+ Items of a definition list with class argument "details" are
+ converted to `details disclosure elements`_. Example::
+
+ ..class:: details
+
+ Summary
+ This additional information should be hidden.
+
Do not add "compound-first", "compound-middle", or "compound-last" to
elements nested in a compound. Use child selector and ":first-child",
":last-child" pseudo classes instead.
@@ -118,14 +119,14 @@
Use class value "backrefs" instead of "fn-backref" for a span of
back-references.
- Items of a definition list with class argument "details" are
- converted to `details disclosure elements`_.
+ Write footnote brackets and field term colons to HTML, so that they
+ are present also without CSS and when copying text.
Move space character between section number and heading into
"sectnum" span.
math-output: html
- Support more commands, fix mapping fo commands to Unicode characters.
+ Support more commands, fix mapping of commands to Unicode characters.
Scale variable sized operators and big delimiters with CSS.
Don't use <tt> element (deprecated in HTML5).
Use STIX fonts if available.
@@ -134,9 +135,9 @@
`legacy_class_functions`_ setting default changed to "False":
admonitions are now environments.
-* ``nodes.Node.traverse()`` returns an iterator instead of a list.
+* New standard Docutils doctree node "meta__".
-* Make meta__ a standard Docutils doctree node.
+* New configuration setting: [latex writers] legacy_column_widths_.
* Removed files:
@@ -148,14 +149,13 @@
* Removed attribute: ``HTMLTranslator.topic_classes``
(check node.parent.classes instead).
-* docutils/utils/math/math2html.py,
- docutils/utils/math/latex2mathml.py
+* Major refactoring and fixes/additions in
+ ``docutils/utils/math/math2html.py`` and
+ ``docutils/utils/math/latex2mathml.py``
+ (mathematical notation in HTML, cf. `LaTeX syntax for mathematics`_).
- - Major refactoring and fixes/additions
- (cf. `LaTeX syntax for mathematics`_).
+* ``nodes.Node.traverse()`` returns an iterator instead of a list.
-* New configuration setting: [latex writers] legacy_column_widths_.
-
* Various bugfixes and improvements (see HISTORY_).
__ docs/ref/doctree.html#meta
Modified: trunk/docutils/docs/ref/rst/directives.txt
===================================================================
--- trunk/docutils/docs/ref/rst/directives.txt 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/docs/ref/rst/directives.txt 2021-10-01 13:39:33 UTC (rev 8836)
@@ -768,6 +768,8 @@
Sets the width of the table to the specified length or percentage
of the line width. If omitted, the renderer determines the width
of the table based on its contents or the column ``widths``.
+
+ .. _column-widths:
``widths`` : "auto", "grid", or a list of integers
A list of relative column widths.
Modified: trunk/docutils/docs/user/config.txt
===================================================================
--- trunk/docutils/docs/user/config.txt 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/docs/user/config.txt 2021-10-01 13:39:33 UTC (rev 8836)
@@ -1221,8 +1221,6 @@
(leave out the ``<colgroup>`` column specification).
Overridden by the "widths" option of the `table directive`_.
-.. TODO: the HTML5 writer also supports
-
colwidths-grid
Backwards compatibility setting. Write column widths
determined from the source to the HTML file.
Modified: trunk/docutils/docutils/writers/_html_base.py
===================================================================
--- trunk/docutils/docutils/writers/_html_base.py 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/docutils/writers/_html_base.py 2021-10-01 13:39:33 UTC (rev 8836)
@@ -123,7 +123,8 @@
{'dest': 'compact_field_lists', 'action': 'store_false'}),
('Added to standard table classes. '
'Defined styles: borderless, booktabs, '
- 'align-left, align-center, align-right, colwidths-auto. ',
+ 'align-left, align-center, align-right, '
+ 'colwidths-auto, colwidths-grid.',
['--table-style'],
{'default': ''}),
('Math output format (one of "MathML", "HTML", "MathJax", '
@@ -426,6 +427,10 @@
if languages:
# attribute name is 'lang' in XHTML 1.0 but 'xml:lang' in 1.1
atts[self.lang_attribute] = languages[0]
+ # filter classes that are processed by the writer:
+ internal = ('colwidths-auto', 'colwidths-given', 'colwidths-grid')
+ if isinstance(node, nodes.table):
+ classes = [cls for cls in classes if cls not in internal]
if classes:
atts['class'] = ' '.join(classes)
assert 'id' not in atts
@@ -671,8 +676,8 @@
nodes.colspec):
return
if 'colwidths-auto' in node.parent.parent['classes'] or (
- 'colwidths-auto' in self.settings.table_style and
- ('colwidths-given' not in node.parent.parent['classes'])):
+ 'colwidths-grid' not in self.settings.table_style
+ and 'colwidths-given' not in node.parent.parent['classes']):
return
total_width = sum(node['colwidth'] for node in self.colspecs)
self.body.append(self.starttag(node, 'colgroup'))
Modified: trunk/docutils/docutils/writers/latex2e/__init__.py
===================================================================
--- trunk/docutils/docutils/writers/latex2e/__init__.py 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/docutils/writers/latex2e/__init__.py 2021-10-01 13:39:33 UTC (rev 8836)
@@ -52,10 +52,9 @@
r'\usepackage{mathptmx} % Times',
r'\usepackage[scaled=.90]{helvet}',
r'\usepackage{courier}'])
- table_style_values = (# TODO: align-left, align-center, align-right,
+ table_style_values = [# TODO: align-left, align-center, align-right, ??
'booktabs', 'borderless', 'colwidths-auto',
- 'colwidths-given', # set by parser if "widths" option is specified
- 'nolines', 'standard')
+ 'nolines', 'standard']
settings_spec = (
'LaTeX-Specific Options',
@@ -1606,7 +1605,8 @@
if language:
self.babel.otherlanguages[language] = True
self.out.append('\\begin{selectlanguage}{%s}\n' % language)
- elif isinstance(node, nodes.table) and cls in Writer.table_style_values:
+ elif (isinstance(node, nodes.table)
+ and cls in Writer.table_style_values + ['colwidths-given']):
pass
else:
if not self.fallback_stylesheet:
@@ -1620,7 +1620,8 @@
language = self.babel.language_name(cls[9:])
if language:
self.out.append('\\end{selectlanguage}\n')
- elif isinstance(node, nodes.table) and cls in Writer.table_style_values:
+ elif (isinstance(node, nodes.table)
+ and cls in Writer.table_style_values + ['colwidths-given']):
pass
else:
if not self.fallback_stylesheet:
Modified: trunk/docutils/test/functional/expected/footnotes_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/footnotes_html5.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/footnotes_html5.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -108,10 +108,6 @@
<aside class="footnote superscript" id="footnote-10" role="note">
<span class="label"><span class="fn-bracket">[</span><a role="doc-backlink" href="#footnote-reference-13">10</a><span class="fn-bracket">]</span></span>
<table>
-<colgroup>
-<col style="width: 36%" />
-<col style="width: 64%" />
-</colgroup>
<tbody>
<tr><td><p>a</p></td>
<td><p>table</p></td>
Modified: trunk/docutils/test/functional/expected/latex_memoir.tex
===================================================================
--- trunk/docutils/test/functional/expected/latex_memoir.tex 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/latex_memoir.tex 2021-10-01 13:39:33 UTC (rev 8836)
@@ -1840,7 +1840,7 @@
\begin{description}
\item[{Math-Accents:}] \leavevmode
-\setlength{\DUtablewidth}{\linewidth}%
+\setlength{\DUtablewidth}{1.000\linewidth}%
\begin{longtable*}{p{0.315\DUtablewidth}p{0.315\DUtablewidth}p{0.315\DUtablewidth}}
$\acute{a}$ \texttt{\textbackslash{}acute\{a\}}
Modified: trunk/docutils/test/functional/expected/math_output_html.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_html.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/math_output_html.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -74,7 +74,7 @@
physical system changes in time.</p>
<dl class="docutils">
<dt>Math-Accents:</dt>
-<dd><table border="1" class="colwidths-given borderless first last docutils">
+<dd><table border="1" class="borderless first last docutils" style="width: 100%">
<colgroup>
<col width="33%" />
<col width="33%" />
Modified: trunk/docutils/test/functional/expected/math_output_latex.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_latex.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/math_output_latex.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -47,7 +47,7 @@
physical system changes in time.</p>
<dl class="docutils">
<dt>Math-Accents:</dt>
-<dd><table border="1" class="colwidths-given borderless first last docutils">
+<dd><table border="1" class="borderless first last docutils" style="width: 100%">
<colgroup>
<col width="33%" />
<col width="33%" />
Modified: trunk/docutils/test/functional/expected/math_output_mathjax.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/math_output_mathjax.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -60,7 +60,7 @@
physical system changes in time.</p>
<dl class="docutils">
<dt>Math-Accents:</dt>
-<dd><table border="1" class="colwidths-given borderless first last docutils">
+<dd><table border="1" class="borderless first last docutils" style="width: 100%">
<colgroup>
<col width="33%" />
<col width="33%" />
Modified: trunk/docutils/test/functional/expected/math_output_mathml.html
===================================================================
--- trunk/docutils/test/functional/expected/math_output_mathml.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/math_output_mathml.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -209,12 +209,7 @@
physical system changes in time.</p>
<dl>
<dt>Math-Accents:</dt>
-<dd><table class="colwidths-given borderless">
-<colgroup>
-<col style="width: 33%" />
-<col style="width: 33%" />
-<col style="width: 33%" />
-</colgroup>
+<dd><table class="borderless" style="width: 100%;">
<tbody>
<tr><td><p><math xmlns="http://www.w3.org/1998/Math/MathML">
<mover>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html4css1.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/standalone_rst_html4css1.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -733,7 +733,7 @@
<p>With the "widths" argument "auto" (or "class" value "colwidths-auto"),
column widths are determined by the backend (if supported by the
writer/backend).</p>
-<span id="target1"></span><table border="1" class="colwidths-auto docutils" id="target2">
+<span id="target1"></span><table border="1" class="docutils" id="target2">
<thead valign="bottom">
<tr><th class="head">A</th>
<th class="head">B</th>
@@ -1193,7 +1193,7 @@
<div class="section" id="list-tables">
<h2><a class="toc-backref" href="#toc-entry-41">2.22 List Tables</a></h2>
<p>Here's a list table exercising all features:</p>
-<table border="1" class="colwidths-given test docutils" style="width: 95%">
+<table border="1" class="test docutils" style="width: 95%">
<caption>list table with integral header</caption>
<colgroup>
<col width="26%" />
@@ -1222,7 +1222,7 @@
</tr>
</tbody>
</table>
-<table border="1" class="colwidths-auto docutils align-center">
+<table border="1" class="docutils align-center">
<caption>center aligned list table</caption>
<tbody valign="top">
<tr><td>Albatross</td>
Modified: trunk/docutils/test/functional/expected/standalone_rst_html5.html
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/standalone_rst_html5.html 2021-10-01 13:39:33 UTC (rev 8836)
@@ -608,10 +608,6 @@
<p>Plaintext markup syntax and parser system.</p>
<div class="legend">
<table>
-<colgroup>
-<col style="width: 20%" />
-<col style="width: 80%" />
-</colgroup>
<tbody>
<tr><td><p>re</p></td>
<td><p>Revised, revisited, based on 're' module.</p></td>
@@ -676,10 +672,6 @@
directive:</p>
<table class="align-left">
<caption>left-aligned table</caption>
-<colgroup>
-<col style="width: 50%" />
-<col style="width: 50%" />
-</colgroup>
<thead>
<tr><th class="head"><p>A</p></th>
<th class="head"><p>not A</p></th>
@@ -696,10 +688,6 @@
</table>
<table class="align-center">
<caption>center-aligned table</caption>
-<colgroup>
-<col style="width: 50%" />
-<col style="width: 50%" />
-</colgroup>
<thead>
<tr><th class="head"><p>A</p></th>
<th class="head"><p>not A</p></th>
@@ -716,10 +704,6 @@
</table>
<table class="align-right">
<caption>right-aligned table</caption>
-<colgroup>
-<col style="width: 50%" />
-<col style="width: 50%" />
-</colgroup>
<thead>
<tr><th class="head"><p>A</p></th>
<th class="head"><p>not A</p></th>
@@ -737,7 +721,7 @@
<p>With the "widths" argument "auto" (or "class" value "colwidths-auto"),
column widths are determined by the backend (if supported by the
writer/backend).</p>
-<span id="target1"></span><table class="colwidths-auto" id="target2">
+<span id="target1"></span><table id="target2">
<thead>
<tr><th class="head"><p>A</p></th>
<th class="head"><p>B</p></th>
@@ -942,11 +926,6 @@
<p>Compound 7, tests the inclusion of various block-level
elements in one logical paragraph. First a table,</p>
<table>
-<colgroup>
-<col style="width: 33%" />
-<col style="width: 33%" />
-<col style="width: 33%" />
-</colgroup>
<tbody>
<tr><td><p>Left cell, first
paragraph.</p>
@@ -1084,11 +1063,6 @@
<h3><a class="toc-backref" href="#toc-entry-38" role="doc-backlink"><span class="sectnum">2.19 </span>Colspanning tables</a></h3>
<p>This table has a cell spanning two columns:</p>
<table>
-<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>
<th class="head"><p>Output</p></th>
@@ -1122,11 +1096,6 @@
<h3><a class="toc-backref" href="#toc-entry-39" role="doc-backlink"><span class="sectnum">2.20 </span>Rowspanning tables</a></h3>
<p>Here's a table with cells spanning several rows:</p>
<table>
-<colgroup>
-<col style="width: 44%" />
-<col style="width: 22%" />
-<col style="width: 33%" />
-</colgroup>
<thead>
<tr><th class="head"><p>Header row, column 1
(header rows optional)</p></th>
@@ -1155,12 +1124,6 @@
<h3><a class="toc-backref" href="#toc-entry-40" role="doc-backlink"><span class="sectnum">2.21 </span>Complex tables</a></h3>
<p>Here's a complex table, which should test all features.</p>
<table>
-<colgroup>
-<col style="width: 43%" />
-<col style="width: 21%" />
-<col style="width: 18%" />
-<col style="width: 18%" />
-</colgroup>
<thead>
<tr><th class="head"><p>Header row, column 1
(header rows optional)</p></th>
@@ -1203,7 +1166,7 @@
<section id="list-tables">
<h3><a class="toc-backref" href="#toc-entry-41" role="doc-backlink"><span class="sectnum">2.22 </span>List Tables</a></h3>
<p>Here's a list table exercising all features:</p>
-<table class="colwidths-given test" style="width: 95%;">
+<table class="test" style="width: 95%;">
<caption>list table with integral header</caption>
<colgroup>
<col style="width: 26%" />
@@ -1232,7 +1195,7 @@
</tr>
</tbody>
</table>
-<table class="align-center colwidths-auto">
+<table class="align-center">
<caption>center aligned list table</caption>
<tbody>
<tr><td><p>Albatross</p></td>
@@ -1475,11 +1438,6 @@
<li><p>Numbered tables can be achieved with the "numbered" class option:</p>
<table class="numbered">
<caption>truth values</caption>
-<colgroup>
-<col style="width: 29%" />
-<col style="width: 29%" />
-<col style="width: 42%" />
-</colgroup>
<thead>
<tr><th class="head"><p>A</p></th>
<th class="head"><p>B</p></th>
@@ -1514,7 +1472,7 @@
</ul>
<p>"Booktabs" style table, numbered, centre-aligned, with auto-sized columns:</p>
<blockquote>
-<table class="align-center booktabs numbered colwidths-auto">
+<table class="align-center booktabs numbered">
<caption>I/O values</caption>
<thead>
<tr><th class="head" colspan="2"><p>Input</p></th>
Modified: trunk/docutils/test/functional/expected/standalone_rst_latex.tex
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_latex.tex 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/standalone_rst_latex.tex 2021-10-01 13:39:33 UTC (rev 8836)
@@ -1862,7 +1862,7 @@
\begin{description}
\item[{Math-Accents:}] \leavevmode
-\setlength{\DUtablewidth}{\linewidth}%
+\setlength{\DUtablewidth}{1.000\linewidth}%
\begin{longtable*}{p{0.315\DUtablewidth}p{0.315\DUtablewidth}p{0.315\DUtablewidth}}
$\acute{a}$ \texttt{\textbackslash{}acute\{a\}}
Modified: trunk/docutils/test/functional/expected/standalone_rst_xetex.tex
===================================================================
--- trunk/docutils/test/functional/expected/standalone_rst_xetex.tex 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/expected/standalone_rst_xetex.tex 2021-10-01 13:39:33 UTC (rev 8836)
@@ -1900,7 +1900,7 @@
\begin{description}
\item[{Math-Accents:}] \leavevmode
-\setlength{\DUtablewidth}{\linewidth}%
+\setlength{\DUtablewidth}{1.000\linewidth}%
\begin{longtable*}{p{0.315\DUtablewidth}p{0.315\DUtablewidth}p{0.315\DUtablewidth}}
$\acute{a}$ \texttt{\textbackslash{}acute\{a\}}
Modified: trunk/docutils/test/functional/input/data/math.txt
===================================================================
--- trunk/docutils/test/functional/input/data/math.txt 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/functional/input/data/math.txt 2021-10-01 13:39:33 UTC (rev 8836)
@@ -49,7 +49,7 @@
Math-Accents:
.. list-table::
:class: borderless
- :widths: 26 26 26
+ :width: 100%
* - :math:`\acute{a}` ``\acute{a}``
- :math:`\dot{t}` ``\dot{t}``
Modified: trunk/docutils/test/test_writers/test_html5_polyglot_parts.py
===================================================================
--- trunk/docutils/test/test_writers/test_html5_polyglot_parts.py 2021-09-30 10:15:45 UTC (rev 8835)
+++ trunk/docutils/test/test_writers/test_html5_polyglot_parts.py 2021-10-01 13:39:33 UTC (rev 8836)
@@ -350,10 +350,6 @@
""",
"""\
{'fragment': '''<table class="align-right">
-<colgroup>
-<col style="width: 50%%" />
-<col style="width: 50%%" />
-</colgroup>
<tbody>
<tr><td><p>1</p></td>
<td><p>2</p></td>
@@ -365,10 +361,6 @@
</table>\\n''',
'html_body': '''<main>
<table class="align-right">
-<colgroup>
-<col style="width: 50%%" />
-<col style="width: 50%%" />
-</colgroup>
<tbody>
<tr><td><p>1</p></td>
<td><p>2</p></td>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|