Skip to content

Commit 26b04a1

Browse files
authored
[3.13] GH-121970: Extract pydoc_topics into a new extension (GH-131256) (#131511)
(cherry picked from commit c1a02f9)
1 parent 2b5feb1 commit 26b04a1

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
@@ -144,7 +144,7 @@ def write_documents(self, _docnames: Set[str]) -> None:
144144
visitor = TextTranslator(document, builder=self)
145145
document.walkabout(visitor)
146146
body = "\n".join(map(str.rstrip, visitor.body.splitlines()))
147-
self.topics[topic_label] = body
147+
self.topics[topic_label] = body + "\n"
148148

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

0 commit comments

Comments
 (0)