diff --git a/crates/nu-data/src/base/shape.rs b/crates/nu-data/src/base/shape.rs index fb1e09f9c1..69a1e81f96 100644 --- a/crates/nu-data/src/base/shape.rs +++ b/crates/nu-data/src/base/shape.rs @@ -194,10 +194,12 @@ impl PrettyDebug for FormatInlineShape { match byte.get_unit() { byte_unit::ByteUnit::B => { let locale_byte = byte.get_value() as u64; - (b::primitive(locale_byte.to_formatted_string(&Locale::en)) - + b::space() - + b::kind("B")) - .group() + let locale_byte_string = locale_byte.to_formatted_string(&Locale::en); + if filesize_format.1 == "auto" { + (b::primitive(locale_byte_string) + b::space() + b::kind("B")).group() + } else { + (b::primitive(locale_byte_string)).group() + } } _ => b::primitive(byte.format(1)), }