We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
--fmt: off
Describe the bug sqlfmt is removing blank lines after comment lines despite being disabled by --fmt: off
To Reproduce
-- fmt: off -- Comment block A explaining something -- Comment block B explaining a completely different thing select 1 from table1;
Expected behavior
sqlfmt should not change anything below the -- fmt: off comment.
-- fmt: off
Actual behavior
sqlfmt removes the empty line between comment A and comment B.
Additional context What is the output of sqlfmt --version? version 0.24.0
sqlfmt --version
The text was updated successfully, but these errors were encountered:
Agreed this is a bug.
The workaround here is to add an empty comment between your blocks:
-- Comment block A explaining something -- -- Comment block B explaining a completely different thing select 1 from table1;
Sorry, something went wrong.
No branches or pull requests
Describe the bug
sqlfmt is removing blank lines after comment lines despite being disabled by
--fmt: off
To Reproduce
Expected behavior
sqlfmt should not change anything below the
-- fmt: off
comment.Actual behavior
sqlfmt removes the empty line between comment A and comment B.
Additional context
What is the output of
sqlfmt --version
? version 0.24.0The text was updated successfully, but these errors were encountered: