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

jinjafmt strips parens from return macro, breaking it #155

Closed
tconbeer opened this issue Mar 30, 2022 · 0 comments · Fixed by #183
Closed

jinjafmt strips parens from return macro, breaking it #155

tconbeer opened this issue Mar 30, 2022 · 0 comments · Fixed by #183
Labels
bug Something isn't working
Milestone

Comments

@tconbeer
Copy link
Owner

Describe the bug
A clear and concise description of what the bug is.

To Reproduce

{{- return(adapter.dispatch('my_macro', 'my_package')(arg1, arg2)) -}}

Expected behavior

{{- return(adapter.dispatch('my_macro', 'my_package')(arg1, arg2)) -}}

Actual behavior
This is not valid jinja, and won't compile

{{- return adapter.dispatch('my_macro', 'my_package')(arg1, arg2) -}}

Additional context
What is the output of sqlfmt --version?
0.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant