From bd1282eddf31c060bc25893cc3e4ae4fbfb2238e Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 31 May 2016 16:25:02 +0100 Subject: [PATCH] Don't print config with trailing whitespace --- internal/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 545cec84d..fdc9a8753 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -356,7 +356,7 @@ func printConfig(name string, p printer, op string, commented bool) { fmt.Print("\n") continue } - fmt.Print(comment + line + "\n") + fmt.Print(strings.TrimRight(comment+line, " ") + "\n") } } }