Skip to content

Commit

Permalink
Fix bug: no more empty bullet points
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Feb 21, 2024
1 parent 05590bc commit 4b6b0ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion galaxy_release_util/point_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def read_package(package_path: pathlib.Path) -> Package:

def parse_changelog(package: Package) -> List[ChangelogItem]:
def add_changelog_item(changes, child):
changes.append(f"* {child.rawsource.strip()}")
rawsource = child.rawsource.strip()
if rawsource:
changes.append(f"* {rawsource}")

settings = frontend.get_default_settings(Parser) # type: ignore[attr-defined] ## upstream type stubs not updated?
document = utils.new_document(str(package.history_rst), settings)
Expand Down

0 comments on commit 4b6b0ce

Please sign in to comment.