Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML5 writer generates invalid HTML if the table has two tags [SF:bugs:312] #383

Closed
chrisjsewell opened this issue Aug 9, 2020 · 0 comments

Comments

@chrisjsewell
Copy link
Owner

author: ja6hfa
created: 2017-03-02 18:11:40.557000
assigned: None
SF_url: https://sourceforge.net/p/docutils/bugs/312

test.rst

test
====

.. _tag1:

.. _tag2:

.. list-table:: Caption

   - * hello
     * world
$ rst2html5.py test.rst

Extra tag is inserted after table tag, but, table tag can't have span tag as a child.

<table id="tag2">
<span id="tag1"></span><caption>Caption</caption>
<colgroup>...</colgroup>
<tbody>...</tbody>
</table>

I think adding table node to the tuple at line 292 of docutils/writers/_html_base.py (0.13.1) will fix it.


commenter: milde
posted: 2017-03-03 14:47:03.634000
title: #312 HTML5 writer generates invalid HTML if the table has two tags

  • status: open --> closed-fixed

commenter: milde
posted: 2017-03-03 14:47:03.881000
title: #312 HTML5 writer generates invalid HTML if the table has two tags

Fixed in Revision 8042. Thank you for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant