Skip to content

Commit bc68614

Browse files
committed
[3.12] pythonGH-121970: Extract pydoc_topics into a new extension (pythonGH-131256)
(cherry picked from commit c1a02f9) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent caa7388 commit bc68614

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
@@ -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)