Skip to content

Commit ae8cbec

Browse files
committed
Fix unpack warning is shown when the directives generated from Sphinx.add_crossref_type is used
1 parent b60e96f commit ae8cbec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: CHANGES

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

1819
Documentation
1920
-------------

Diff for: sphinx/domains/std.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def run(self):
121121
indextype = indexentry[:colon].strip()
122122
indexentry = indexentry[colon+1:].strip()
123123
inode = addnodes.index(entries=[(indextype, indexentry,
124-
targetname, '')])
124+
targetname, '', None)])
125125
ret.insert(0, inode)
126126
name = self.name
127127
if ':' in self.name:

0 commit comments

Comments
 (0)