Skip to content
Permalink
Browse files
fix: changelog empty lines between sections
  • Loading branch information
caarlos0 committed Aug 8, 2022
1 parent 042c638 commit 102ac7e2305973aade53e8e6cce328bc03f154df
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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...)
}
}

0 comments on commit 102ac7e

Please sign in to comment.