Skip to content

Commit

Permalink
remove all /n and replace by space
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaerten committed Jun 28, 2024
1 parent 48bd962 commit 2dfe192
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion help.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (e *Executor) ListTasks(o ListOptions) (bool, error) {
for _, task := range tasks {
e.Logger.FOutf(w, logger.Yellow, "* ")
e.Logger.FOutf(w, logger.Green, task.Task)
desc := strings.ReplaceAll(strings.TrimSuffix(task.Desc, "\n"), "\n", "\n\t")
desc := strings.ReplaceAll(task.Desc, "\n", " ")
e.Logger.FOutf(w, logger.Default, ": \t%s", desc)
if len(task.Aliases) > 0 {
e.Logger.FOutf(w, logger.Cyan, "\t(aliases: %s)", strings.Join(task.Aliases, ", "))
Expand Down

0 comments on commit 2dfe192

Please sign in to comment.