tpl: Update Jsonify to return pretty-print output

Fixes #5040
This commit is contained in:
Sean Prashad
2018-10-20 22:44:15 -04:00
committed by Bjørn Erik Pedersen
parent 4a366fcfee
commit 5a52cd5f92
4 changed files with 5 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ func init() {
ns.AddMethodMapping(ctx.Jsonify,
[]string{"jsonify"},
[][2]string{
{`{{ (slice "A" "B" "C") | jsonify }}`, `["A","B","C"]`},
{`{{ (slice "A" "B" "C") | jsonify }}`, "[\n \"A\",\n \"B\",\n \"C\"\n]"},
},
)