From 4b6b0cef488209fa02618ce47e19aa85c416be80 Mon Sep 17 00:00:00 2001 From: John Davis Date: Wed, 21 Feb 2024 18:33:59 -0500 Subject: [PATCH] Fix bug: no more empty bullet points --- galaxy_release_util/point_release.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/galaxy_release_util/point_release.py b/galaxy_release_util/point_release.py index 571182b..5306a37 100644 --- a/galaxy_release_util/point_release.py +++ b/galaxy_release_util/point_release.py @@ -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)