refactor: optimize JSON indent output format (#236)

This commit is contained in:
stevenlele authored and ᴍᴏᴏɴD4ʀᴋ committed 2024-01-09 18:10:14 +08:00
1 parent 07561f56fa
commit 53e9447713
1 file changed
+1 -1
+1 -1
View File
@@ -32,7 +32,7 @@ func (o *outPutter) Write(data Source, writer io.Writer) error {
switch o.json {
case true:
encoder := json.NewEncoder(writer)
encoder.SetIndent(" ", " ")
encoder.SetIndent("", " ")
encoder.SetEscapeHTML(false)
return encoder.Encode(data)
default: