Add padding above headers when no grid

This commit is contained in:
Prat T authored and David Peter committed 2020-05-12 16:37:29 +02:00
1 parent 1a6e8d297f
commit 0040fef215
3 files changed
+40 -6

No files matched your search

+13 -1
View File
@@ -611,7 +611,7 @@ fn filename_multiple_ok() {
.arg("--file-name=bar")
.assert()
.success()
.stdout("File: foo\nFile: bar\n")
.stdout("File: foo\n\nFile: bar\n")
.stderr("");
}
@@ -628,6 +628,18 @@ fn filename_multiple_err() {
.failure();
}
#[test]
fn header_padding() {
bat()
.arg("--decorations=always")
.arg("--style=plain")
.arg("test.txt")
.arg("single-line.txt")
.assert()
.stdout("hello world\n\nSingle Line\n")
.stderr("");
}
#[cfg(target_os = "linux")]
#[test]
fn file_with_invalid_utf8_filename() {