Skip to content

Commit c3677e0

Browse files
committed
Final newline
1 parent 29fccb6 commit c3677e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/extensions/pydoc_topics.py

Lines changed: 1 addition & 1 deletion
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)