Skip to content

Commit

Permalink
Add newline before lists in contributor section (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Sep 25, 2023
1 parent 7ca7dfe commit bf5baee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/changelist/_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ def _format_contributor_section(
yield "\n"

yield f"{len(authors)} authors added to this release (alphabetically):\n"
yield "\n"
author_lines = map(self._format_user_line, authors)
yield from sorted(author_lines, key=lambda s: s.lower())
yield "\n"

yield f"{len(reviewers)} reviewers added to this release (alphabetically):\n"
yield "\n"
reviewers_lines = map(self._format_user_line, reviewers)
yield from sorted(reviewers_lines, key=lambda s: s.lower())
yield "\n"
Expand Down

0 comments on commit bf5baee

Please sign in to comment.