fix(view): whitespace corrections

- Fix bug whereby `--all` flag would conflict with pager

- Fix whitespace inconsistencies among view and search outputs
This commit is contained in:
Chris Lane
2020-11-28 11:18:16 -05:00
parent ecc96c64f9
commit 4f2a57fce8
4 changed files with 16 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import "testing"
// TestIndent asserts that Indent prepends a tab to each line
func TestIndent(t *testing.T) {
got := Indent("foo\nbar\nbaz")
want := "\tfoo\n\tbar\n\tbaz"
want := "\tfoo\n\tbar\n\tbaz\n"
if got != want {
t.Errorf("failed to indent: want: %s, got: %s", want, got)
}