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

Don't move partial classes inside Twig attributes #184

Merged
merged 4 commits into from
Jul 14, 2023

Conversation

thecrypticace
Copy link
Contributor

This is the same as #164 but for Twig / Melody.

Given:

<div class="sm:p-4 p-2 text-{{ i }}"></div>

Before PR (incorrect):

<div class="text- p-2 sm:p-4{{ i }}"></div>

After PR (correct):

<div class="p-2 sm:p-4 text-{{ i }}"></div>

Fixes #183

@thecrypticace thecrypticace changed the title Fix sorting of concat expressions in Twig attributes Don't move partial classes inside Twig attributes Jul 14, 2023
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.

The plugin breaks partial classes like text-{{ i }} in Twig files
1 participant