1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-09 13:36:56 +02:00

fix: changelog empty lines between sections

This commit is contained in:
Carlos A Becker 2022-08-08 00:20:10 -03:00
parent 042c63884c
commit 102ac7e230
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -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...)
}
}