mirror of
https://github.com/sharkdp/hexyl.git
synced 2026-10-30 09:05:54 +00:00
1 parent
d9723592bf
commit
b1c8606918
3 files changed
+32
No files matched your search
@@ -428,8 +428,10 @@ impl<'a, Writer: Write> Printer<'a, Writer> {
|
||||
|
||||
// Finish last line
|
||||
self.print_textline().ok();
|
||||
|
||||
if !self.header_was_printed() {
|
||||
self.header();
|
||||
writeln!(self.writer, "│ │ No content to print │ │ │ │").ok();
|
||||
}
|
||||
self.footer();
|
||||
|
||||
@@ -459,6 +461,7 @@ mod tests {
|
||||
let input = io::empty();
|
||||
let expected_string = "\
|
||||
┌────────┬─────────────────────────┬─────────────────────────┬────────┬────────┐
|
||||
│ │ No content to print │ │ │ │
|
||||
└────────┴─────────────────────────┴─────────────────────────┴────────┴────────┘
|
||||
"
|
||||
.to_owned();
|
||||
|
||||
Reference in new issue
Block a user