mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 04:48:48 +00:00
Justify header when there are decorations but no grid
This commit is contained in:
parent
65bb4c7ee6
commit
2ea3758c4b
@ -90,6 +90,8 @@ impl<'a> Printer<'a> {
|
|||||||
.grid
|
.grid
|
||||||
.paint(if self.panel_width > 0 { "│" } else { "" }),
|
.paint(if self.panel_width > 0 { "│" } else { "" }),
|
||||||
)?;
|
)?;
|
||||||
|
} else {
|
||||||
|
write!(self.handle, "{}", " ".repeat(self.panel_width))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
writeln!(
|
writeln!(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
File: sample.rs
|
File: sample.rs
|
||||||
1 struct Rectangle {
|
1 struct Rectangle {
|
||||||
2 width: u32,
|
2 width: u32,
|
||||||
3 height: u32,
|
3 height: u32,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
File: sample.rs
|
File: sample.rs
|
||||||
struct Rectangle {
|
struct Rectangle {
|
||||||
width: u32,
|
width: u32,
|
||||||
height: u32,
|
height: u32,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
File: sample.rs
|
File: sample.rs
|
||||||
1 struct Rectangle {
|
1 struct Rectangle {
|
||||||
2 width: u32,
|
2 width: u32,
|
||||||
3 height: u32,
|
3 height: u32,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user