Skip to content

Commit

Permalink
Strip mid-string newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
jtc42 committed Feb 7, 2020
1 parent 84b092f commit d9156c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion labthings/core/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_docstring(obj):
ds = obj.__doc__
if ds:
stripped = [line.strip() for line in ds.splitlines() if line]
return " \n".join(stripped)
return " \n".join(stripped).replace("\n", " ").replace("\r", "")
else:
return ""

Expand Down

0 comments on commit d9156c3

Please sign in to comment.