From df154c8aa0504430c231d54cbd5e7634013ebda6 Mon Sep 17 00:00:00 2001 From: zhaolei Date: Fri, 12 Apr 2024 10:32:29 +0800 Subject: [PATCH] fix: padding of extra spaces when using '--size=bytes' --- src/meta/size.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/size.rs b/src/meta/size.rs index 8b66c96e6..1b6455550 100644 --- a/src/meta/size.rs +++ b/src/meta/size.rs @@ -73,7 +73,7 @@ impl Size { ColoredString::new(Colors::default_style(), left_pad), val_content, ]; - if flags.size != SizeFlag::Short { + if flags.size == SizeFlag::Default { strings.push(ColoredString::new(Colors::default_style(), " ".into())); } strings.push(unit_content);