Justify header when there are decorations but no grid

This commit is contained in:
Ezinwa Okpoechi authored and David Peter committed 2018-05-24 19:10:24 +02:00
1 parent 65bb4c7ee6
commit 2ea3758c4b
4 files changed
+5 -3

No files matched your search

+2
View File
@@ -90,6 +90,8 @@ impl<'a> Printer<'a> {
.grid
.paint(if self.panel_width > 0 { "│" } else { "" }),
)?;
} else {
write!(self.handle, "{}", " ".repeat(self.panel_width))?;
}
writeln!(
@@ -1,4 +1,4 @@
File: sample.rs
File: sample.rs
1 struct Rectangle {
2 width: u32,
3 height: u32,
@@ -1,4 +1,4 @@
File: sample.rs
File: sample.rs
struct Rectangle {
width: u32,
height: u32,
@@ -1,4 +1,4 @@
File: sample.rs
File: sample.rs
1 struct Rectangle {
2 width: u32,
3 height: u32,