summaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorMartin Nordholts <enselic@gmail.com>2020-12-16 19:22:31 +0100
committerMartin Nordholts <enselic@gmail.com>2020-12-19 10:32:50 +0100
commit68d525cd8b350b40e2c990c70625eba4e82f746d (patch)
tree4289c4bd8d828e1e20cb61285040f90f65755900 /CHANGELOG.md
parentc3fc1b88fea5e4f4aee2e02ee7426180031a0081 (diff)
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.
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2ef17a38..05540511 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,8 @@
## Bugfixes
+- If the last line doesn't end with a newline character, don't add it if `--style=plain`, see #1438 (@Enselic)
+
## Other
## Syntaxes