From 2eb8292c347dba9ffb1c7b55c70632b9ef053c4f Mon Sep 17 00:00:00 2001 From: Amolith Date: Thu, 30 Oct 2025 09:05:07 -0600 Subject: [PATCH] fix(cmd): remove errant newline in plan output RenderPlan already returns string with trailing newline. Changed Fprintln to Fprint in PrintPlan and runListTasks. Implements: bug-ae16af8 Co-authored-by: Crush --- cmd/shared/helpers.go | 2 +- cmd/t/t.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/shared/helpers.go b/cmd/shared/helpers.go index 99d5c3001f8653ed741a18af560bd432be4334ec..2a30f5cc2b8383d91dd9acdbea49a1998b59081f 100644 --- a/cmd/shared/helpers.go +++ b/cmd/shared/helpers.go @@ -53,6 +53,6 @@ func PrintPlan(cmd *cobra.Command, env *cli.Environment, sid string) (cli.PlanSt return cli.PlanState{}, err } - _, _ = fmt.Fprintln(cmd.OutOrStdout(), cli.RenderPlan(state)) + _, _ = fmt.Fprint(cmd.OutOrStdout(), cli.RenderPlan(state)) return state, nil } diff --git a/cmd/t/t.go b/cmd/t/t.go index 09a91957f4b71327e4b76150f783df64b2ef01c3..116e99481174de9931a7f67a89e8f9b35ed655ea 100644 --- a/cmd/t/t.go +++ b/cmd/t/t.go @@ -69,6 +69,6 @@ func runListTasks(cmd *cobra.Command, _ []string) error { state.Goal = &goalDoc } - _, _ = fmt.Fprintln(cmd.OutOrStdout(), cli.RenderPlan(state)) + _, _ = fmt.Fprint(cmd.OutOrStdout(), cli.RenderPlan(state)) return nil }