Skip to content

Commit 48efdcf

Browse files
committed
When repairing bad summaries, use only the first line.
1 parent 68795af commit 48efdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/dist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def single_line(val):
149149
if '\n' in val:
150150
# TODO after 2021-07-31: Replace with `raise ValueError("newlines not allowed")`
151151
warnings.warn("newlines not allowed and will break in the future")
152-
val = val.replace('\n', ' ')
152+
val = val.strip().split('\n')[0]
153153
return val
154154

155155

0 commit comments

Comments
 (0)