Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: changelog empty lines between sections
  • Loading branch information
caarlos0 committed Aug 8, 2022
1 parent 042c638 commit 102ac7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pipe/changelog/changelog.go
Expand Up @@ -152,7 +152,7 @@ func formatChangelog(ctx *context.Context, entries []string) (string, error) {
sort.Slice(groups, func(i, j int) bool { return groups[i].order < groups[j].order })
for _, group := range groups {
if len(group.entries) > 0 {
result = append(result, fmt.Sprintf("### %s", group.title))
result = append(result, fmt.Sprintf("\n### %s", group.title))
result = append(result, group.entries...)
}
}
Expand Down

0 comments on commit 102ac7e

Please sign in to comment.