diff --git a/crates/cuddle-please-misc/src/cliff/mod.rs b/crates/cuddle-please-misc/src/cliff/mod.rs index 18b51e4..c581caf 100644 --- a/crates/cuddle-please-misc/src/cliff/mod.rs +++ b/crates/cuddle-please-misc/src/cliff/mod.rs @@ -245,7 +245,9 @@ fn default_changelog_body_config(release_link: Option<&str>) -> String { {% endif -%} {%- if commit.body -%} {%- if commit.body | length > 0 -%} -{% raw %} {% endraw %}{{ commit.body | trim }} +{% for line in commit.body | trim | split(pat="\n") -%} +{% raw %} {% endraw %}{{ line | trim }} +{% endfor -%} {% endif -%} {% endif -%} {% endfor -%} @@ -522,7 +524,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 let commits: Vec<&str> = vec![ "feat: some feature -some body", +some body +and another line", "some random commit", "fix: some fix", "chore(scope): some chore", @@ -544,6 +547,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - some feature some body + and another line ### Fixed - some fix