fix hexdump alignment for non-multiple-of-16 size

main
pantonshire 1 year ago
parent d1ee14003c
commit 88aa06627c

@ -97,7 +97,7 @@ impl<'a> InputBytes<'a> {
for b in chunk {
print!(" {:02x}", b);
}
print!("{: <4}", "");
print!("{: <1$}", "", 4 + 3 * (16 - chunk.len()));
for b in chunk {
let c = match char::from(*b) {
c if c.is_ascii_graphic() => c,

Loading…
Cancel
Save