mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix oversight in last commit
This commit is contained in:
parent
7b7579765d
commit
b23f0489f4
@ -149,11 +149,12 @@ class ObjectDescription(Directive):
|
|||||||
signode.clear()
|
signode.clear()
|
||||||
signode += addnodes.desc_name(sig, sig)
|
signode += addnodes.desc_name(sig, sig)
|
||||||
continue # we don't want an index entry here
|
continue # we don't want an index entry here
|
||||||
self.names.append(name)
|
if name not in self.names:
|
||||||
if not noindex and name not in self.names:
|
self.names.append(name)
|
||||||
# only add target and index entry if this is the first
|
if not noindex:
|
||||||
# description of the object with this name in this desc block
|
# only add target and index entry if this is the first
|
||||||
self.add_target_and_index(name, sig, signode)
|
# description of the object with this name in this desc block
|
||||||
|
self.add_target_and_index(name, sig, signode)
|
||||||
|
|
||||||
contentnode = addnodes.desc_content()
|
contentnode = addnodes.desc_content()
|
||||||
node.append(contentnode)
|
node.append(contentnode)
|
||||||
|
Loading…
Reference in New Issue
Block a user