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

Indent the first line within a template string #89

Merged
merged 1 commit into from
Dec 24, 2022
Merged

Conversation

jparise
Copy link
Owner

@jparise jparise commented Dec 24, 2022

If the previous line isn't GraphQL, assume we're part of a template string and indent this new line within it.

This is (hopefully) an improvement over the previous behavior which preserved the indentation of the previous line in these cases.

Closes #87

If the previous line isn't GraphQL, assume we're part of a template
string and indent this new line within it.

This is (hopefully) an improvement over the previous behavior which
preserved the indentation of the previous line in these cases.

Closes #87
@jparise jparise merged commit 8da6cf8 into master Dec 24, 2022
@jparise jparise deleted the indent-template branch December 24, 2022 22:17
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

Successfully merging this pull request may close these issues.

Automatic indentation inside JavaScript template literals not working as expected
1 participant