mirror of
https://github.com/sharkdp/bat
synced 2024-11-16 21:25:56 +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
|
||||
.paint(if self.panel_width > 0 { "│" } else { "" }),
|
||||
)?;
|
||||
} else {
|
||||
write!(self.handle, "{}", " ".repeat(self.panel_width))?;
|
||||
}
|
||||
|
||||
writeln!(
|
||||
|
Loading…
Reference in New Issue
Block a user