mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix unpack warning is shown when the directives generated from `Sphinx.add_crossref_type
` is used
This commit is contained in:
parent
b60e96f47a
commit
ae8cbec29a
1
CHANGES
1
CHANGES
@ -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
|
||||||
-------------
|
-------------
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user