diff --git a/git-cliff-core/src/release.rs b/git-cliff-core/src/release.rs index 92808b2beb..8401a8193f 100644 --- a/git-cliff-core/src/release.rs +++ b/git-cliff-core/src/release.rs @@ -39,7 +39,7 @@ impl<'a> Release<'a> { .next( self.commits .iter() - .map(|commit| commit.message.to_string()) + .map(|commit| commit.message.trim_end().to_string()) .collect::>(), ) .to_string(); @@ -70,6 +70,7 @@ mod test { ("1.1.0", vec!["feat: add xyz", "fix: fix xyz"]), ("1.0.1", vec!["fix: add xyz", "fix: aaaaaa"]), ("2.0.0", vec!["feat!: add xyz", "feat: zzz"]), + ("2.0.0", vec!["feat!: add xyz\n", "feat: zzz\n"]), ] { let release = Release { version: None,