From 12cedddd689797b92354cd66112d0e9211fff667 Mon Sep 17 00:00:00 2001 From: George Pollard Date: Sat, 24 Aug 2019 15:25:09 +1200 Subject: [PATCH] Align bytes values in tables --- src/object/base.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/object/base.rs b/src/object/base.rs index ea86386c6c..e3bcae01df 100644 --- a/src/object/base.rs +++ b/src/object/base.rs @@ -94,14 +94,14 @@ impl Primitive { let byte = byte_unit::Byte::from_bytes(*b as u128); if byte.get_bytes() == 0u128 { - return "".to_string(); + return " – ".to_string(); } let byte = byte.get_appropriate_unit(false); match byte.get_unit() { - byte_unit::ByteUnit::B => format!("{}", byte.format(0)), - _ => format!("{}", byte.format(1)), + byte_unit::ByteUnit::B => format!("{:>5} B ", byte.get_value()), + _ => format!("{:>8}", byte.format(1)), } } Primitive::Int(i) => format!("{}", i),