Infra: Fix hiding of References if it contains invisible SystemMessage (#3083)
This commit is contained in:
parent
9b56f53c05
commit
4b3c9504ed
|
@ -40,7 +40,7 @@ class PEPFooter(transforms.Transform):
|
||||||
types.add(type(node))
|
types.add(type(node))
|
||||||
if isinstance(node, nodes.target):
|
if isinstance(node, nodes.target):
|
||||||
to_hoist.append(node)
|
to_hoist.append(node)
|
||||||
if types <= {nodes.title, nodes.target}:
|
if types <= {nodes.title, nodes.target, nodes.system_message}:
|
||||||
section.parent.extend(to_hoist)
|
section.parent.extend(to_hoist)
|
||||||
section.parent.remove(section)
|
section.parent.remove(section)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue