Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Grönholm <[email protected]>
  • Loading branch information
intentionally-left-nil and agronholm authored Jan 5, 2025
1 parent 2459d08 commit 5b9b830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/wheel/cli/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ def convert_pkg_info(pkginfo: str, metadata: Message):

if key_lower == "description":
description_lines = value.splitlines()
if len(description_lines) == 0:
value = "\n"
else:
if description_lines:
value = "\n".join(
(
description_lines[0].lstrip(),
dedent("\n".join(description_lines[1:])),
"\n",
)
else:
value = "\n"
)
metadata.set_payload(value)
elif key_lower == "home-page":
Expand Down

0 comments on commit 5b9b830

Please sign in to comment.