Skip to content

Commit

Permalink
One more
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Dec 22, 2023
1 parent ec450c5 commit 8eae4f0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3091,12 +3091,9 @@ def get_displayname(self, i: int) -> str:
return f'argument {i}'

def render_docstring(self) -> str:
lines = []
lines.append(f" {self.name}")
for line in self.docstring.split("\n"):
lines.append(f" {line}")
out = "\n".join(lines)
return out.rstrip()
lines = [f" {self.name}"]
lines.extend(f" {line}" for line in self.docstring.split("\n"))
return "\n".join(lines).rstrip()


CConverterClassT = TypeVar("CConverterClassT", bound=type["CConverter"])
Expand Down

0 comments on commit 8eae4f0

Please sign in to comment.