Skip to content
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

Remove extra newlines and whitespace inside of tokens #201

Closed
tconbeer opened this issue Jul 14, 2022 · 0 comments
Closed

Remove extra newlines and whitespace inside of tokens #201

tconbeer opened this issue Jul 14, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@tconbeer
Copy link
Owner

Describe the bug
It's possible for a single token to be composed of multiple words, like union all, select top 25, not in, etc. We parse those tokens even if they contain newlines or extra whitespace, like union\n\n all, but we don't then remove those extra characters from the formatted output

To Reproduce

union

 all

Expected behavior

union all

Actual behavior

union

 all

Additional context
What is the output of sqlfmt --version?
0.9.0

@tconbeer tconbeer added the bug Something isn't working label Jul 14, 2022
@tconbeer tconbeer added this to the v0.10.1 milestone Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant