diff --git a/ignite/internal/tools/gen-mig-diffs/pkg/diff/diff.go b/ignite/internal/tools/gen-mig-diffs/pkg/diff/diff.go index 768c7c26cc..06058da2fb 100644 --- a/ignite/internal/tools/gen-mig-diffs/pkg/diff/diff.go +++ b/ignite/internal/tools/gen-mig-diffs/pkg/diff/diff.go @@ -100,9 +100,11 @@ func FormatDiffs(diffs Diffs) ([]byte, error) { buffer := &bytes.Buffer{} for name, diffs := range diffs { buffer.WriteString(fmt.Sprintf("#### **%s diff**\n\n", xstrings.ToUpperFirst(name))) - for _, d := range diffs { + for i, d := range diffs { buffer.WriteString(fmt.Sprint(d)) - buffer.WriteString("\n\n") + if i < len(diffs)-1 { + buffer.WriteString("\n\n") + } } } return buffer.Bytes(), nil diff --git a/ignite/internal/tools/gen-mig-diffs/pkg/repo/repo.go b/ignite/internal/tools/gen-mig-diffs/pkg/repo/repo.go index b216f60afc..d738b6c52c 100644 --- a/ignite/internal/tools/gen-mig-diffs/pkg/repo/repo.go +++ b/ignite/internal/tools/gen-mig-diffs/pkg/repo/repo.go @@ -186,8 +186,7 @@ Commit: %[2]v Author: %[3]v Date: %[4]v -%[5]v -`, +%[5]v`, g.To.Original(), tagObj.Hash.String(), tagObj.Tagger.String(), diff --git a/ignite/internal/tools/gen-mig-diffs/templates/doc/files/{{Version}}.md.plush b/ignite/internal/tools/gen-mig-diffs/templates/doc/files/{{Version}}.md.plush index 09f30733d7..cd3599abe3 100644 --- a/ignite/internal/tools/gen-mig-diffs/templates/doc/files/{{Version}}.md.plush +++ b/ignite/internal/tools/gen-mig-diffs/templates/doc/files/{{Version}}.md.plush @@ -7,11 +7,8 @@ description: <%= ShortDescription %> ## **<%= ToVersion %>** <%= Description %> - ### **Chain migration diffs** - <%= Diffs %> - ### **Details** - **The CLI tools automatically generated this file**;