From 26b04a16eedca9af5c67726753331bfa46174b9f Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Date: Thu, 20 Mar 2025 15:34:10 +0000 Subject: [PATCH] [3.13] GH-121970: Extract `pydoc_topics` into a new extension (GH-131256) (#131511) (cherry picked from commit c1a02f9101f0b2d9dc7cfb4b8be5193e7459a906) --- Doc/tools/extensions/pydoc_topics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tools/extensions/pydoc_topics.py b/Doc/tools/extensions/pydoc_topics.py index 0f3dfacd4f2f..01efbba62832 100644 --- a/Doc/tools/extensions/pydoc_topics.py +++ b/Doc/tools/extensions/pydoc_topics.py @@ -144,7 +144,7 @@ class PydocTopicsBuilder(TextBuilder): 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( -- 2.47.3