From 6f74095ce228cea4d94767fc1cc7ddbb7d96ee54 Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Fri, 8 Mar 2019 09:00:17 -0800 Subject: [PATCH] Merge PR #3831: Move indent for json output to 2 spaces --- client/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/context/context.go b/client/context/context.go index beffad0c41..fd2e1ac1a5 100644 --- a/client/context/context.go +++ b/client/context/context.go @@ -259,7 +259,7 @@ func (ctx CLIContext) PrintOutput(toPrint fmt.Stringer) (err error) { case "json": if ctx.Indent { - out, err = ctx.Codec.MarshalJSONIndent(toPrint, "", " ") + out, err = ctx.Codec.MarshalJSONIndent(toPrint, "", " ") } else { out, err = ctx.Codec.MarshalJSON(toPrint) }