mirror of
https://codeberg.org/scip/tablizer.git
synced 2026-02-04 02:20:56 +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
|
col := colorizer.Replace
|
||||||
if strings.Contains(col, ":") {
|
if strings.Contains(col, ":") {
|
||||||
parts := strings.Split(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