Colin-b / keepachangelog

Convert keep a changelog markdown file into python dict

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

0.3.0: asterisks should only be stripped from the left

ewen-lbh opened this issue · comments

If a changelog entry ends with italics, eg:

### Changed

- Lorem ipsum dolor sit *amet*

Then the parsed entry would be:

"changed": [
    "Lorem ipsum dolor sit *amet"
]

Which seems invalid to me.

A one-character change in _changelog.py fixes this problem:

- line.strip(" -*")
+ line.lstrip(" -*")

I can do a PR too, but since this change is so quick, It'll be easier if @Colin-b can do it.

Release 0.3.1 is now available in pypi