8000 [3.12] GH-121970: Extract `pydoc_topics` into a new extension (GH-131… · python/cpython@e1626c3 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1626c3

Browse files
authored
[ 8000 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

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