From 7e0a554ab30cd049fe548e2892ff5ed560c2c4d6 Mon Sep 17 00:00:00 2001 From: "C.A.M. Gerlach" Date: Tue, 19 Apr 2022 18:25:08 -0500 Subject: [PATCH] Style: Retitle inline 'Contents' to 'Table of Contents' for clarity --- pep_sphinx_extensions/pep_processor/html/pep_html_translator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep_sphinx_extensions/pep_processor/html/pep_html_translator.py b/pep_sphinx_extensions/pep_processor/html/pep_html_translator.py index ae1e1e028a0..8530ea77151 100644 --- a/pep_sphinx_extensions/pep_processor/html/pep_html_translator.py +++ b/pep_sphinx_extensions/pep_processor/html/pep_html_translator.py @@ -91,7 +91,7 @@ def depart_label(self, node) -> None: def visit_bullet_list(self, node): if isinstance(node.parent, nodes.section) and "contents" in node.parent["names"]: - self.body.append("
Contents") + self.body.append("
Table of Contents") self.context.append("
") super().visit_bullet_list(node)