mirror of
https://github.com/sharkdp/bat
synced 2024-11-24 12:53:22 +00: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.
8 lines
252 B
INI
Vendored
8 lines
252 B
INI
Vendored
#this is a comment in the hosts file
|
|
127.0.0.1 localhost
|
|
|
|
192.168.0.1 sample.test #a comment
|
|
192.160.0.200 try.sample.test try #another comment
|
|
216.58.223.238 google.com
|
|
|
|
::1 localhost.try ip6-localhost
|