-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should not automatically add \n when using --plain #434
Comments
I have compiled a version of bat removing the code introduced in #300, and it doesn't seem to make any difference. Also, there is the fact that |
Thank you for the feedback. I do agree with your opinions and conclusions. As a side-comment: note that you can use For example, compare:
|
That is very useful indeed, thanks! |
#300 ads a newline character to the output to avoid issues with the grid, which is understandable. But when using
bat --plain
, I would expect it to behave likecat
, that is, if there is no newline at the end, I need to know it.If the file is broken, it shouldn't be bat's job to fix it (some shells will deal with the annoyances of the output beautifully, like fish, which puts a ⏎ at the end of the output to show there is no newline, instead of leaving a broken prompt).
The text was updated successfully, but these errors were encountered: