Changes between Initial Version and Version 2 of Ticket #37212


Ignore:
Timestamp:
Jul 10, 2026, 1:14:58 PM (3 weeks ago)
Author:
Mike Edmunds
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37212

    • Property Triage Stage UnreviewedAccepted
  • Ticket #37212 – Description

    initial v2  
    33== 1. Outdated workaround to remove table borders crashes other themes
    44
    5 The `DjangoHTMLTranslator.visit_table()` and `depart_table()` are working around `<table border=1>` created by the docutils html4 writer. But Sphinx has used the ''html5'' writer (which doesn't emit the obsolete border attribute) since 2.0. The workaround depends on undocumented Sphinx internal attrs and causes an `IndexError` when used with (e.g.,) sphinx-pydata-theme.
     5The `DjangoHTMLTranslator.visit_table()` and `depart_table()` overrides are working around `<table border=1>` created by the docutils html4 writer. But Sphinx has used the ''html5'' writer (which doesn't emit the obsolete border attribute) since 2.0. The workaround depends on undocumented Sphinx internal attrs and causes an `IndexError` when used with (e.g.,) sphinx-pydata-theme.
    66
    77It can and should be removed.
     8
     9Edit: similar problem with `DjangoHTMLTranslator.visit_desc_parameterlist()`, which was meant to prevent `<big>(</big>` in parameter lists. Sphinx hasn't done that in ages, and the override regularly breaks with new Sphinx versions (and prevents use of Sphinx's `multi_line_parameter_list` option).
    810
    911== 2. console-tabs implementation creates asymmetric DOM
Back to Top