mirror of
https://github.com/sharkdp/bat.git
synced 2024-11-25 17:23:39 +01:00
68d525cd8b
This fixes #1438. Note however, that using a pager such as less will add a newline itself. So to actually not print a newline for such files, you need to either disable paging: bat --style=plain --paging=never no-newline-at-end-of-file.txt or use a "pager" that does not add a newline: bat --style=plain --pager=cat no-newline-at-end-of-file.txt Note that we also update syntax tests file since a bunch of them had missing newlines on the last lines.
17 lines
285 B
Plaintext
Vendored
17 lines
285 B
Plaintext
Vendored
#
|
|
# Comment
|
|
|
|
[attr]binary -diff -merge -text
|
|
|
|
* text=auto
|
|
*.c diff=c
|
|
*.cc text diff=cpp
|
|
*.o binary
|
|
*.bat text eol=crlf
|
|
*.lock text -diff
|
|
*.*ignore text
|
|
*.patch -text
|
|
|
|
.gitattributes linguist-language=gitattributes
|
|
.gitkeep export-ignore
|