list/tree: Fix some escape codes included in nonTTY

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
(cherry picked from commit 6979ab073c)
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski 2024-08-16 16:35:46 +02:00
parent f42fa0b8e1
commit 7196200fc2
No known key found for this signature in database
GPG Key ID: B85EFCFE26DEF92A
1 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,8 @@ func (h imgColumn) PrintR(clr aec.ANSI, s string) string {
type noColor struct{}
func (a noColor) With(ansi ...aec.ANSI) aec.ANSI {
return aec.NewBuilder(ansi...).ANSI
func (a noColor) With(_ ...aec.ANSI) aec.ANSI {
return a
}
func (a noColor) Apply(s string) string {