10000 Infra: Fix hiding of References if it contains invisible SystemMessag… · python/peps@4b3c950 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b3c950

Browse files
authored
Infra: Fix hiding of References if it contains invisible SystemMessage (#3083)
1 parent 9b56f53 commit 4b3c950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pep_sphinx_extensions/pep_processor/transforms/pep_footer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def apply(self) -> None:
4040
types.add(type(node))
4141
if isinstance(node, nodes.target):
4242
to_hoist.append(node)
43-
if types <= {nodes.title, nodes.target}:
43+
if types <= {nodes.title, nodes.target, nodes.system_message}:
4444
section.parent.extend(to_hoist)
4545
section.parent.remove(section)
4646

0 commit comments

Comments
 (0)
0