You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A table inside another table messes with the even/odd count of the parent table rows.
.. rst-class:: fancy+------------------------------+| SOME TITLE ............... |+------------------------------+|+--------------------------+||| Item 1 |||+--------------------------+||| Item 1 |||+--------------------------+||| Item 1 |||+--------------------------+|+------------------------------+| ANOTHER TITLE ........... |+------------------------------+|+--------------------------+||| Item 1 |||+--------------------------+||| Item 1 |||+--------------------------+|+------------------------------+
Gives this result:
<tableclass="fancy docutils align-default"><colgroup><colstyle="width: 100%"></colgroup><tbody><trclass="row-odd"><td><p>SOME TITLE ……………</p></td><!-- This is odd --></tr><trclass="row-even"><td><!-- This is even --><tableclass="docutils align-default"><colgroup><colstyle="width: 100%"></colgroup><tbody><trclass="row-odd"><td><p>Item 1</p></td></tr><trclass="row-even"><td><p>Item 1</p></td></tr><trclass="row-odd"><td><p>Item 1</p></td></tr></tbody></table></td></tr><trclass="row-even"><td><p>ANOTHER TITLE ………..</p></td><!-- This is even but should be odd --></tr><trclass="row-odd"><td><tableclass="docutils align-default"><colgroup><colstyle="width: 100%"></colgroup><tbody><trclass="row-odd"><td><p>Item 1</p></td></tr><trclass="row-even"><td><p>Item 1</p></td></tr></tbody></table></td></tr></tbody></table>
The inner table numbering has overwritten the outer table numbering.
How to Reproduce
$ git clone https://github.com/mccoys/EvenOddSphinx.git
$ cd EvenOddSphinx
$ make html
Open build/index.html and look at the table odd/even rows.
Expected behavior
Even/odd numbering of inner tables should be counted with a different variable than that of the outer table
Info
linux ubuntu 21.04
python 3.9.5
sphinx 3.5.4 (seen also with 4.2.0)
The text was updated successfully, but these errors were encountered:
A table inside another table messes with the even/odd count of the parent table rows.
Gives this result:
The inner table numbering has overwritten the outer table numbering.
How to Reproduce
Open
build/index.html
and look at the table odd/even rows.Expected behavior
Even/odd numbering of inner tables should be counted with a different variable than that of the outer table
Info
The text was updated successfully, but these errors were encountered: