Fix unpack warning is shown when the directives generated from `Sphinx.add_crossref_type` is used

This commit is contained in:
Takeshi KOMIYA 2016-02-17 11:58:12 +09:00
parent b60e96f47a
commit ae8cbec29a
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Bugs fixed
* Remove ``image/gif`` from supported_image_types of LaTeX writer (#2272) * Remove ``image/gif`` from supported_image_types of LaTeX writer (#2272)
* Fix code-block literals raises highlighting warnings by default * Fix code-block literals raises highlighting warnings by default
* Fix ValueError is raised if LANGUAGE is empty string * Fix ValueError is raised if LANGUAGE is empty string
* Fix unpack warning is shown when the directives generated from ``Sphinx.add_crossref_type`` is used
Documentation Documentation
------------- -------------

View File

@ -121,7 +121,7 @@ class Target(Directive):
indextype = indexentry[:colon].strip() indextype = indexentry[:colon].strip()
indexentry = indexentry[colon+1:].strip() indexentry = indexentry[colon+1:].strip()
inode = addnodes.index(entries=[(indextype, indexentry, inode = addnodes.index(entries=[(indextype, indexentry,
targetname, '')]) targetname, '', None)])
ret.insert(0, inode) ret.insert(0, inode)
name = self.name name = self.name
if ':' in self.name: if ':' in self.name: