https://github.com/python/cpython/commit/26b04a16eedca9af5c67726753331bfa46174b9f commit: 26b04a16eedca9af5c67726753331bfa46174b9f branch: 3.13 author: Adam Turner <9087854+aa-tur...@users.noreply.github.com> committer: AA-Turner <9087854+aa-tur...@users.noreply.github.com> date: 2025-03-20T15:34:10Z summary:
[3.13] GH-121970: Extract `pydoc_topics` into a new extension (GH-131256) (#131511) (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 0f3dfacd4f2f87..01efbba628324f 100644 --- a/Doc/tools/extensions/pydoc_topics.py +++ b/Doc/tools/extensions/pydoc_topics.py @@ -144,7 +144,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