-
-
Notifications
You must be signed in to change notification settings - Fork 25
Omit extra newline when printing to stdout #730
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
Conversation
tconbeer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thank you. Just needs a CHANGELOG entry
816ed66 to
a2c126f
Compare
|
There you go :) I guess this is technically a breaking change. Up to you to decide how you want to bump the version for release. |
|
No, this is fine. same as the tests you already changed. Just fix the tests, please |
|
Oh I see what you mean, there are extra end-to-end tests. I had only run |
a2c126f to
ae6d184
Compare
|
All tests pass on my end 👍 |
ae6d184 to
9d868a0
Compare
9d868a0 to
ddf760a
Compare
|
... and fix linter errors (sorry, I had missed there was a linter check too) |
delete extra coverage file
|
Thanks, sorry about accidentally including the coverage file, that was messy of me |
|
No worries! Thanks for contributing! |
sqlfmt appends another newline to stdout when formatting text from stdin (as well as the newline added by the formatter).
This means that formatting outputs are inconsistent between the following methods:
This change removes the extra newline. It changes one test which assumed the existence of the extra newline, but I think this new behaviour makes more sense.
Fixes #729