Skip to content

Commit 0b27002

Browse files
committed
Empty lines are now filtered out before trying to extract information
1 parent 2098ecf commit 0b27002

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

keepachangelog/_changelog.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def add_category(release: dict, line: str) -> list[str]:
6868

6969

7070
def add_information(category: list[str], line: str) -> None:
71-
if clean_line := line.strip(" \n"):
72-
category.append(clean_line.lstrip(" *-").rstrip(" -"))
71+
category.append(line.lstrip(" *-").rstrip(" -\n"))
7372

7473

7574
def to_dict(

0 commit comments

Comments
 (0)