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(