Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

FIX: indentation fix #1077

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

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Conversation

jklymak
Copy link
Contributor

@jklymak jklymak commented Feb 14, 2023

this_toctree is not defined if the conditional is false, so don't add it to the index! Follow up to #1071

@@ -462,8 +462,7 @@ def _format_toctree(items, includehidden=False):

st = """
.. toctree::
:hidden:
"""
:hidden:"""
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This included an extra carriage return, which makes build errors....

@larsoner larsoner merged commit 7248eb6 into sphinx-gallery:master Feb 15, 2023
@larsoner
Copy link
Contributor

Thanks for the quick fix @jklymak !

@jklymak
Copy link
Contributor Author

jklymak commented Feb 15, 2023

Yes well, I should have tested on Matplotlib too ;-).

@larsoner larsoner added the bug label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.