Adjust spaces on empty lines

This commit is contained in:
Sharif Haason committed 2022-11-27 17:15:26 -05:00
1 parent ec61c2a789
commit 7de17c4f35
1 file changed
+3 -1
+3 -1
View File
@@ -339,7 +339,7 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
fn panel_sz(&self) -> usize {
// add one to include the trailing space of a group
let group_sz = 2 * self.group_bytes as usize + 1;
let group_sz = self.base_digits as usize * self.group_bytes as usize + 1;
let group_per_panel = 8 / self.group_bytes as usize;
// add one to include the leading space
1 + group_sz * group_per_panel
@@ -514,8 +514,10 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
self.writer.write_all(b" ")?;
}
}
for _ in 0..self.base_digits {
self.writer.write_all(b" ")?;
}
}
Squeezer::Delete => self.writer.write_all(b" ")?,
Squeezer::Ignore | Squeezer::Disabled => {
if i % (self.group_bytes as usize) == 0 {