Skip to content

Commit

Permalink
FIX: Compatibility with sphinx 4.3 (visit_table) (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche committed Nov 10, 2021
1 parent 71bd290 commit ae888d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pydata_sphinx_theme/bootstrap_html_translator.py
Expand Up @@ -37,7 +37,10 @@ def visit_table(self, node):
if LooseVersion(sphinx.__version__) < LooseVersion("4.0"):
self.generate_targets_for_table(node)

self._table_row_index = 0
if LooseVersion(sphinx.__version__) < LooseVersion("4.3"):
self._table_row_index = 0
else:
self._table_row_indices.append(0)

classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]

Expand Down

0 comments on commit ae888d1

Please sign in to comment.