https://github.com/python/cpython/commit/e1626c3b70ed04e264d802a8ed83d70ca248fded commit: e1626c3b70ed04e264d802a8ed83d70ca248fded branch: 3.12 author: Adam Turner <9087854+aa-tur...@users.noreply.github.com> committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com> date: 2025-03-20T15:40:37Z summary:
[3.12] GH-121970: Extract `pydoc_topics` into a new extension (GH-131256) (#131512) (cherry picked from commit c1a02f9101f0b2d9dc7cfb4b8be5193e7459a906) files: M Doc/tools/extensions/pydoc_topics.py diff --git a/Doc/tools/extensions/pydoc_topics.py b/Doc/tools/extensions/pydoc_topics.py index 86d929fdd90252..4bb6b58ec06e02 100644 --- a/Doc/tools/extensions/pydoc_topics.py +++ b/Doc/tools/extensions/pydoc_topics.py @@ -143,7 +143,7 @@ def write_documents(self, _docnames: Set[str]) -> None: visitor = TextTranslator(document, builder=self) document.walkabout(visitor) body = "\n".join(map(str.rstrip, visitor.body.splitlines())) - self.topics[topic_label] = body + self.topics[topic_label] = body + "\n" def finish(self) -> None: topics_repr = "\n".join( _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com