mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Remove padding if the header style is not enabled
This commit is contained in:
1 parent
0040fef215
commit
b3373398e8
2 files changed
+2
-4
No files matched your search
@@ -632,11 +632,11 @@ fn filename_multiple_err() {
|
||||
fn header_padding() {
|
||||
bat()
|
||||
.arg("--decorations=always")
|
||||
.arg("--style=plain")
|
||||
.arg("--style=header")
|
||||
.arg("test.txt")
|
||||
.arg("single-line.txt")
|
||||
.assert()
|
||||
.stdout("hello world\n\nSingle Line\n")
|
||||
.stdout("File: test.txt\nhello world\n\nFile: single-line.txt\nSingle Line\n")
|
||||
.stderr("");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user