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

help! Formatted little problem with #31

Closed
cailongl opened this issue Sep 12, 2017 · 2 comments
Closed

help! Formatted little problem with #31

cailongl opened this issue Sep 12, 2017 · 2 comments

Comments

@cailongl
Copy link

hi!

i get code like this:

image

and i want format to like this:

image

but i got this:

image

can you resolve this problem? thanks , i use sql-format "react-router-dom": "^4.1.1",

@nene
Copy link
Collaborator

nene commented Sep 12, 2017

So, you would like the formatter to either:

  • preserve the original line-breaks in input SQL. Preserving the original formatting is something sql-formatter was not designed to do. So that's a no.
  • add four line-breaks between individual SQL statements. Adding four line breaks instead of one looks like a very personal preference. I can imagine somebody else liking the current one, somebody else liking two, but I think very few people would like to have four.

So the only option I see would be to have it configurable. Would that be a solution for you?

@cailongl
Copy link
Author

ok i got it. thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants