on master help sign in
Remove unnecessary space if there are no decorations
commita452467e064a7a5be5bc1a4ba7eeb88219dd50b1 authorEzinwa Okpoechi <brainmaestro@outlook.com> dateThu 24 May 2018, 12:05 (8 years ago) parent2ea3758
2 files changed+3−3
src/printer.rs+2−2 tests/snapshots/output/grid,header.snapshot.txt+1−1
src/printer.rs+2−2
@@ -84,11 +84,11 @@ impl<'a> Printer<'a> {
8484
8585 write!(
8686 self.handle,
87− "{}{} ",
87+ "{}{}",
8888 " ".repeat(self.panel_width),
8989 self.colors
9090 .grid
91− .paint(if self.panel_width > 0 { "│" } else { "" }),
91+ .paint(if self.panel_width > 0 { "│ " } else { "" }),
9292 )?;
9393 } else {
9494 write!(self.handle, "{}", " ".repeat(self.panel_width))?;
tests/snapshots/output/grid,header.snapshot.txt+1−1
@@ -1,5 +1,5 @@
11────────────────────────────────────────────────────────────────────────────────
2− File: sample.rs
2+File: sample.rs
33────────────────────────────────────────────────────────────────────────────────
44struct Rectangle {
55 width: u32,