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 Feature
A configuration option (or default behavior) to keep some existing blank lines from the input file. For example, IntelliJ has the following options for Java:
Why do you want this feature?
I have some SQL files used for database migrations with a header comment at the top that isn't directly related to the first query:
-- Some header comment-- with metadata for migrations toolCREATETABLEsomething(id INTEGERPRIMARY KEY);
When I format this with sql-formatter, it currently deletes the blank line between the header comment and the first query.
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. It would definitely make sense to preserve blank lines.
However, with the current architecture of the formatter this is pretty hard to accomplish. Besides, I'm not actively developing this tool any more. Instead concentrating on prettier-plugin-sql-cst. So this is unlikely to happen unless you would like to implement it by yourself.
Describe the Feature
A configuration option (or default behavior) to keep some existing blank lines from the input file. For example, IntelliJ has the following options for Java:
Why do you want this feature?
I have some SQL files used for database migrations with a header comment at the top that isn't directly related to the first query:
When I format this with sql-formatter, it currently deletes the blank line between the header comment and the first query.
The text was updated successfully, but these errors were encountered: