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:
parent
042c63884c
commit
102ac7e230
@ -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...)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user