Fix #3774: Incremental HTML building broken when using citations

This commit is contained in:
Takeshi KOMIYA 2017-05-21 10:05:11 +09:00
parent a43cac55bc
commit 16d0569536
2 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ Bugs fixed
is obtained using some extra LaTeX code in Sphinx's own :file:`conf.py`
* #3770: Build fails when a "code-block" has the option emphasize-lines and the
number indicated is higher than the number of lines
* #3774: Incremental HTML building broken when using citations
Testing
--------

View File

@ -538,7 +538,7 @@ class StandardDomain(Domain):
if docnames == [docname]:
del self.data['citation_refs'][key]
elif docname in docnames:
docnames.pop(docname)
docnames.remove(docname)
for key, (fn, _l, _l) in list(self.data['labels'].items()):
if fn == docname:
del self.data['labels'][key]