Skip to content

Commit e1626c3

Browse files
authored
[3.12] GH-121970: Extract pydoc_topics into a new extension (GH-131256) (#131512)
(cherry picked from commit c1a02f9)
1 parent caa7388 commit e1626c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/extensions/pydoc_topics.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def write_documents(self, _docnames: Set[str]) -> None:
143143
visitor = TextTranslator(document, builder=self)
144144
document.walkabout(visitor)
145145
body = "\n".join(map(str.rstrip, visitor.body.splitlines()))
146-
self.topics[topic_label] = body
146+
self.topics[topic_label] = body + "\n"
147147

148148
def finish(self) -> None:
149149
topics_repr = "\n".join(

0 commit comments

Comments
 (0)