You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-17 01:42:37 +02:00
fix: changelog empty lines between sections
This commit is contained in:
@ -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 })
|
sort.Slice(groups, func(i, j int) bool { return groups[i].order < groups[j].order })
|
||||||
for _, group := range groups {
|
for _, group := range groups {
|
||||||
if len(group.entries) > 0 {
|
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...)
|
result = append(result, group.entries...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user