Skip to content

Commit

Permalink
text: Improve formatting of commit list
Browse files Browse the repository at this point in the history
  • Loading branch information
fallion committed Jun 22, 2019
1 parent f197675 commit bf7982c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ var logCmd = &cobra.Command{
)
}

log.Println("\n", text.BuildHistory(commitMessages))
log.Println(text.BuildHistory(commitMessages))
},
}
1 change: 1 addition & 0 deletions internal/text/build_history.go
Original file line number Diff line number Diff line change
Expand Up @@ -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("- ")
Expand Down

0 comments on commit bf7982c

Please sign in to comment.