mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix bug refs #1722. Circler toctree cause infinite loop.
This commit is contained in:
parent
a9bcff7a26
commit
5b0bb8c1e1
@ -1297,7 +1297,7 @@ class BuildEnvironment:
|
||||
parent[child] = p
|
||||
ancestors = []
|
||||
d = docname
|
||||
while d in parent:
|
||||
while d in parent and d not in ancestors:
|
||||
ancestors.append(d)
|
||||
d = parent[d]
|
||||
return ancestors
|
||||
|
Loading…
Reference in New Issue
Block a user