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

How to avoid adding leading and trailing spaces #18

Open
alexanderluiscampino opened this issue Jun 29, 2020 · 0 comments
Open

How to avoid adding leading and trailing spaces #18

alexanderluiscampino opened this issue Jun 29, 2020 · 0 comments

Comments

@alexanderluiscampino
Copy link

Hi,

Is there anyway to avoid the formatter from transforming:
AND pedition = {EDITION} into this AND pedition = { EDITION }

I use templated SQL queries with Python, and need the curly brackets to do the string.format(EDITION=1)
but the spaces added on auto-save don't allow for that.

I have noticed that the formatter does not do the same if the template value is surrounded by quotes(single or double)
Example: AND pedition = "{EDITION}"

I'd be happy with being able to ignore this line or the whole file. Better would be the auto formatter to not do this formatting, although I suspect there is a reason for such behavior.

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

1 participant