Errant newline in cmd output

Timeline

Amolith opened

I definitely saw the extra newline in the tasks output, but it might affect other issues as well. Investigate first and leave a comment.

Amolith commented

Root cause identified: RenderPlan() in internal/cli/plan.go returns a string that already ends with a newline character, but callers were using fmt.Fprintln() which adds an additional newline.

Fixed in two locations:

  • cmd/shared/helpers.go:56 - Changed Fprintln to Fprint in PrintPlan function
  • cmd/t/t.go:72 - Changed Fprintln to Fprint in runListTasks function

All tests pass. The extra newline after plan/task output is now resolved.

Co-authored-by: Crush crush@charm.land

Amolith closed the bug