You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The --fmt: off tags should stop all formatting of the contained code, but today that is not the case, since comments may be rendered differently in those blocks
To Reproduce
-- fmt: off
where something_long = something_else_long -- and there is a long comment that should stay on this line
-- fmt: on
Expected behavior
-- fmt: off
where something_long = something_else_long -- and there is a long comment that should stay on this line
-- fmt: on
Actual behavior
-- fmt: off
-- and there is a long comment that should stay on this line
where something_long = something_else_long
-- fmt: on
Additional context
What is the output of sqlfmt --version?
0.5.1
The text was updated successfully, but these errors were encountered:
* chore: bump deps
* fix#447: early stop all fmt options if fmt is disabled
* fix#136: don't format comments in fmt off blocks
* fix: clean up newline handling in comments'
* fix: restore comment formatting for data tokens
Describe the bug
The
--fmt: off
tags should stop all formatting of the contained code, but today that is not the case, since comments may be rendered differently in those blocksTo Reproduce
Expected behavior
Actual behavior
Additional context
What is the output of
sqlfmt --version
?0.5.1
The text was updated successfully, but these errors were encountered: