diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c89cdc..299201c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,11 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## 0.3.2 - 2022-08-05 ### Fixed - Strip whitespace between version numbers and dates. +- Skip newlines before changelog title. ## 0.3.1 - 2022-08-04 diff --git a/ocdc/__init__.py b/ocdc/__init__.py index 260c070..f9aa3e1 100644 --- a/ocdc/__init__.py +++ b/ocdc/__init__.py @@ -1 +1 @@ -__version__ = "0.3.1" +__version__ = "0.3.2" diff --git a/ocdc/parser.py b/ocdc/parser.py index d0514e1..5eb8e2a 100644 --- a/ocdc/parser.py +++ b/ocdc/parser.py @@ -196,6 +196,7 @@ def __call__(self) -> ast.Changelog: def changelog(p: Parser) -> ast.Changelog: c = ast.Changelog() + skip_newlines(p) if p.expect(TokenType.HASH, TokenType.TEXT): c.title = p.peek(1).text diff --git a/pyproject.toml b/pyproject.toml index 38321d3..7c51fed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ocdc" -version = "0.3.1" +version = "0.3.2" description = 'A changelog formatter for "people", neat freaks, and sloppy typists.' authors = ["Matteo De Wint "] packages = [{ include = "ocdc" }] diff --git a/setup.cfg b/setup.cfg index 701ba9a..7e57e13 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.3.1 +current_version = 0.3.2 commit = True [flake8] diff --git a/tests/data/strip_whitespace.in.md b/tests/data/strip_whitespace.in.md index 46b5b80..1729c77 100644 --- a/tests/data/strip_whitespace.in.md +++ b/tests/data/strip_whitespace.in.md @@ -1,3 +1,5 @@ + + # Changelog All notable changes to this project will be documented in this file.