Skip to content

Commit

Permalink
refactor(config)!: change the default value of trim to true
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jan 16, 2022
1 parent dce09d7 commit 3b3ef7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-cliff/src/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl<'a> Changelog<'a> {
releases,
template: Template::new({
let mut template = config.changelog.body.to_string();
if config.changelog.trim == Some(true) {
if config.changelog.trim.unwrap_or(true) {
template = template
.lines()
.map(|v| v.trim())
Expand Down

0 comments on commit 3b3ef7e

Please sign in to comment.