Style: Retitle inline 'Contents' to 'Table of Contents' for clarity (#2541)

This commit is contained in:
CAM Gerlach 2022-04-20 04:54:38 -05:00 committed by GitHub
parent a6336e9d74
commit e0d4ae5855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class PEPTranslator(html5.HTML5Translator):
def visit_bullet_list(self, node): def visit_bullet_list(self, node):
if isinstance(node.parent, nodes.section) and "contents" in node.parent["names"]: if isinstance(node.parent, nodes.section) and "contents" in node.parent["names"]:
self.body.append("<details><summary>Contents</summary>") self.body.append("<details><summary>Table of Contents</summary>")
self.context.append("</details>") self.context.append("</details>")
super().visit_bullet_list(node) super().visit_bullet_list(node)