Fix inline table first key value whitespace (#837)

Co-authored-by: Cuong Manh Le <cuong@windscribe.com>
This commit is contained in:
Cuong Manh Le
2023-02-01 18:00:09 +07:00
committed by GitHub
parent 58a592bbf8
commit 090cccf4ba
2 changed files with 22 additions and 1 deletions
+1 -1
View File
@@ -357,9 +357,9 @@ func (enc *Encoder) encodeKv(b []byte, ctx encoderCtx, options valueOptions, v r
if !ctx.inline {
b = enc.encodeComment(ctx.indent, options.comment, b)
b = enc.indent(ctx.indent, b)
}
b = enc.indent(ctx.indent, b)
b = enc.encodeKey(b, ctx.key)
b = append(b, " = "...)