diff --git a/src/printer.rs b/src/printer.rs index 900d9206..c0922163 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -84,11 +84,11 @@ impl<'a> Printer<'a> { write!( self.handle, - "{}{} ", + "{}{}", " ".repeat(self.panel_width), self.colors .grid - .paint(if self.panel_width > 0 { "│" } else { "" }), + .paint(if self.panel_width > 0 { "│ " } else { "" }), )?; } else { write!(self.handle, "{}", " ".repeat(self.panel_width))?; diff --git a/tests/snapshots/output/grid,header.snapshot.txt b/tests/snapshots/output/grid,header.snapshot.txt index 00b176b7..50c16941 100644 --- a/tests/snapshots/output/grid,header.snapshot.txt +++ b/tests/snapshots/output/grid,header.snapshot.txt @@ -1,5 +1,5 @@ ──────────────────────────────────────────────────────────────────────────────── - File: sample.rs +File: sample.rs ──────────────────────────────────────────────────────────────────────────────── struct Rectangle { width: u32,