Style: Retitle inline 'Contents' to 'Table of Contents' for clarity (#2541)
This commit is contained in:
parent
a6336e9d74
commit
e0d4ae5855
|
@ -91,7 +91,7 @@ class PEPTranslator(html5.HTML5Translator):
|
|||
|
||||
def visit_bullet_list(self, node):
|
||||
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>")
|
||||
super().visit_bullet_list(node)
|
||||
|
||||
|
|
Loading…
Reference in New Issue