Skip to content

Commit

Permalink
do not remove empty lines of latest description
Browse files Browse the repository at this point in the history
  • Loading branch information
brainelectronics committed Nov 11, 2022
1 parent 90544e7 commit ee2dde5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/changelog2version/extract_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@ def parse_changelog_completely(self,

# collect the lines until the next (second) match is found
if matches_found == 1:
stripped_line = line.strip()
if stripped_line:
latest_description_lines.append(stripped_line)
latest_description_lines.append(line.strip())

self._logger.debug("Matching release version lines: '{}'".
format(release_version_lines))
Expand Down

0 comments on commit ee2dde5

Please sign in to comment.