Skip to content

Commit e0d4ae5

Browse files
authored
Style: Retitle inline 'Contents' to 'Table of Contents' for clarity (#2541)
1 parent a6336e9 commit e0d4ae5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pep_sphinx_extensions/pep_processor/html/pep_html_translator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def depart_label(self, node) -> None:
9191

9292
def visit_bullet_list(self, node):
9393
if isinstance(node.parent, nodes.section) and "contents" in node.parent["names"]:
94-
self.body.append("<details><summary>Contents</summary>")
94+
self.body.append("<details><summary>Table of Contents</summary>")
9595
self.context.append("</details>")
9696
super().visit_bullet_list(node)
9797

0 commit comments

Comments
 (0)