From 2ad65c0799b8bb7d57e95488a3ddbf6e5c0cf388 Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Fri, 29 Mar 2019 15:02:26 -0700 Subject: [PATCH] ls: Remove space between size and unit (#2735) With the move to go.mod, the latest humanize package is being used. This introduces a space between size and the unit. Manually removing the space to make it consistent with the older mc releases. --- cmd/ls.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ls.go b/cmd/ls.go index 5c2442b3..25487184 100644 --- a/cmd/ls.go +++ b/cmd/ls.go @@ -47,7 +47,7 @@ type contentMessage struct { // String colorized string message. func (c contentMessage) String() string { message := console.Colorize("Time", fmt.Sprintf("[%s] ", c.Time.Format(printDate))) - message = message + console.Colorize("Size", fmt.Sprintf("%7s ", humanize.IBytes(uint64(c.Size)))) + message = message + console.Colorize("Size", fmt.Sprintf("%7s ", strings.Join(strings.Fields(humanize.IBytes(uint64(c.Size))), ""))) message = func() string { if c.Filetype == "folder" { return message + console.Colorize("Dir", fmt.Sprintf("%s", c.Key))