Skip to content

Commit e42932e

Browse files
authored
fix:(PLTI-599) Tab escape issue in resourceTags (#1760)
1 parent 19c18ab commit e42932e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cli/cmd/outputs.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ func (c *cliState) OutputJSON(v interface{}) error {
3636
c.Log.Debugw("unable to pretty print JSON object", "raw", v)
3737
return err
3838
}
39-
fmt.Fprintln(color.Output, string(pretty))
39+
40+
formatted := strings.ReplaceAll(string(pretty), "\t", "\\t")
41+
42+
fmt.Fprintln(color.Output, formatted)
4043
return nil
4144
}
4245

0 commit comments

Comments
 (0)