mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 22:44:50 +08:00
Added encoder tests
This commit is contained in:
@@ -56,7 +56,9 @@ func encodeOperator(d *dataTreeNavigator, context Context, expressionNode *Expre
|
||||
}
|
||||
|
||||
// dont print a new line when printing json on a single line.
|
||||
if preferences.format == JsonOutputFormat && preferences.indent == 0 {
|
||||
if (preferences.format == JsonOutputFormat && preferences.indent == 0) ||
|
||||
preferences.format == CsvOutputFormat ||
|
||||
preferences.format == TsvOutputFormat {
|
||||
stringValue = chomper.ReplaceAllString(stringValue, "")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user