diff --git a/cmd/log.go b/cmd/log.go index 5a99257..b2fe543 100644 --- a/cmd/log.go +++ b/cmd/log.go @@ -34,6 +34,6 @@ var logCmd = &cobra.Command{ ) } - log.Println("\n", text.BuildHistory(commitMessages)) + log.Println(text.BuildHistory(commitMessages)) }, } diff --git a/internal/text/build_history.go b/internal/text/build_history.go index 01fae2c..ab7a359 100644 --- a/internal/text/build_history.go +++ b/internal/text/build_history.go @@ -7,6 +7,7 @@ import ( // BuildHistory takes commit messages and builds a complete list func BuildHistory(messages []string) string { builder := strings.Builder{} + builder.WriteString("\n") for i := 0; i < len(messages); i++ { builder.WriteString("- ")