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

Do not re-assign nodes variable in renderer/sphinxrenderer.py #938

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

RaumZeit
Copy link
Contributor

The nodes variable is a global imported from docutils.
Re-assigning this variable leads to unpredictable behavior. To avoid this, we simply rename all occurrences of variable assignments to nodes_ instead.

The nodes variable is a global imported from docutils. Re-assigning this
variable leads to unpredictabe behavior. To avoid this, we simply rename
all occurrences of variable assignments to nodes_ instead.
@RaumZeit
Copy link
Contributor Author

just as a side-note why I'm reporting this: I've been adapting some of the code in the sphinxrenderer.py where I tried using other nodes from docutils. This, however gave me strange errors until I found that under certain circumstances, the imported nodes from docutils were overridden...

@AA-Turner AA-Turner merged commit b483706 into breathe-doc:main Jul 30, 2024
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.

2 participants