Fix #2189: previous sibling link has broken if the file was appeared twice or more

This commit is contained in:
Takeshi KOMIYA 2015-12-21 11:40:53 +09:00
parent dd74537c62
commit f85d1a0b99
2 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,7 @@ Bugs fixed
* #2168: Fix raw directive does not work for text writer
* #2171: Fix cannot linkcheck url with unicode
* #2182: LaTeX: support image file names with more than 1 dots
* #2189: Fix previous sibling link for first file in subdirectory uses last file, not intended previous from root toctree
Release 1.3.3 (released Dec 2, 2015)

View File

@ -1958,6 +1958,8 @@ class BuildEnvironment:
if docname in parents_set:
# we will warn about this in resolve_toctree()
return
if docname in relations:
return
includes = getinc(docname)
# previous
if not previous: