Skip to content

Commit

Permalink
add trailing newline to task help
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuro9715 committed May 7, 2021
1 parent 5e947d3 commit dbfcc7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func fprintHelp(w io.Writer, config *config.Config) {
func fprintTaskHelp(w io.Writer, task *config.Task) {
var sb strings.Builder
sb.WriteString(task.Description)
if len(task.Description) > 0 && task.Description[len(task.Description)-1] != '\n' {
sb.WriteRune('\n')
}
if len(task.Tasks) > 0 {
fprintTasks(&sb, task.Tasks)
}
Expand Down

0 comments on commit dbfcc7c

Please sign in to comment.