Skip to content

Commit

Permalink
FIX: Compatibility with sphinx 4.3 (visit_table) (pydata#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored and matthewevans committed Dec 16, 2021
1 parent 9c421cb commit 926442a
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 926442a

Please sign in to comment.