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

FIX: Compatibility with sphinx 4.3 (visit_table) #509

Merged
merged 1 commit into from Nov 10, 2021

Conversation

jorisvandenbossche
Copy link
Member

No description provided.

@kousu
Copy link

kousu commented Nov 11, 2021

Thank you ! Ran into this; reported it at executablebooks/sphinx-book-theme#427. Thanks for fixing it.

@larsoner
Copy link
Contributor

Not even one day of down time, awesome @jorisvandenbossche !

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The second and subsequent elements of the list are used for the nested tables. So you should not append the value if you'd like to make a new nested table.

The last element always points to the current table. So it's better to modify its value like following:

            self._table_row_indices[-1] = 0

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

Successfully merging this pull request may close these issues.

None yet

4 participants