mirror of
https://codeberg.org/scip/tablizer.git
synced 2026-02-04 10:20:59 +01:00
remove recursive Sprintf()
This commit is contained in:
@@ -425,10 +425,10 @@ func colorizeOutput(conf cfg.Config, input string) string {
|
||||
col := colorizer.Replace
|
||||
if strings.Contains(col, ":") {
|
||||
parts := strings.Split(col, ":")
|
||||
return color.Sprintf(fmt.Sprintf("<fg=%s;bg=%s>%s</>", parts[0], parts[1], in))
|
||||
return color.Sprintf("<fg=%s;bg=%s>%s</>", parts[0], parts[1], in)
|
||||
}
|
||||
|
||||
return color.Sprintf(fmt.Sprintf("<fg=%s>%s</>", col, in))
|
||||
return color.Sprintf("<fg=%s>%s</>", col, in)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user