-
Notifications
You must be signed in to change notification settings - Fork 327
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
FIX: Compatibility with sphinx 4.3 (visit_table) #509
Conversation
Thank you ! Ran into this; reported it at executablebooks/sphinx-book-theme#427. Thanks for fixing it. |
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) |
There was a problem hiding this comment.
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
No description provided.