bat/tests/syntax-tests/source/Plaintext
Martin Nordholts 68d525cd8b Don't add artificial newline to last line if --style=plain
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.
2020-12-19 10:32:50 +01:00
..
bat_options #1244 Use [].copy and path.exists instead of more cumbersome solutions 2020-10-11 21:31:34 +02:00
plaintext.txt Don't add artificial newline to last line if --style=plain 2020-12-19 10:32:50 +01:00
README.md Added newline to multicharacter line of plaintext generation script 2020-10-11 21:31:34 +02:00

This text file was generated with the following script.

with open("plaintext.txt", "w"):
    for i in range(176):
        try:
            f.write(chr(i) + "\n")
        except:
            pass
    f.write("\n")
    f.write("Here is a line with multiple characters\n")