Remove emojis from json output

pull/8663/head
Priya Wadhwa 2020-07-06 15:28:51 -04:00
parent f68716e2da
commit dd60fa85cc
2 changed files with 4 additions and 4 deletions

View File

@ -69,12 +69,12 @@ type V map[string]interface{}
// T writes a stylized and templated message to stdout
func T(style StyleEnum, format string, a ...V) {
outStyled := ApplyTemplateFormatting(style, useColor, format, a...)
outStyled := ApplyTemplateFormatting(0, useColor, format, a...)
if JSON {
register.PrintStep(outStyled)
} else {
String(outStyled)
return
}
String(outStyled)
}
// String writes a basic formatted string to stdout

View File

@ -155,7 +155,7 @@ func applyStyle(style StyleEnum, useColor bool, format string) string {
}
// Similar to CSS styles, if no style matches, output an unformatted string.
if !ok {
if !ok || JSON {
return format
}