mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] GH-121970: Extract pydoc_topics into a new extension (GH-131256) (#131511)
(cherry picked from commit c1a02f9101)
This commit is contained in:
parent
2b5feb1f9e
commit
26b04a16ee
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ def write_documents(self, _docnames: Set[str]) -> None:
|
|||
visitor = TextTranslator(document, builder=self)
|
||||
document.walkabout(visitor)
|
||||
body = "\n".join(map(str.rstrip, visitor.body.splitlines()))
|
||||
self.topics[topic_label] = body
|
||||
self.topics[topic_label] = body + "\n"
|
||||
|
||||
def finish(self) -> None:
|
||||
topics_repr = "\n".join(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue