Skip to content

Don't repeatedly add backslashes to escape sequences when formatting #381

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

Merged

Conversation

Sec-ant
Copy link
Contributor

@Sec-ant Sec-ant commented Jul 9, 2025

Fixes #294.

I don't think this is the kind of fix for good, but it passes all the test cases. I also added a new test case so this might get the ball rolling, even if not accepted :D

@thecrypticace thecrypticace self-assigned this Jul 9, 2025
@thecrypticace thecrypticace changed the title fix: repeated backslash escaping Don't repeatedly add backslashes to escape sequences when formatting Jul 9, 2025
@thecrypticace thecrypticace merged commit 63d1f5c into tailwindlabs:main Jul 9, 2025
1 check passed
@thecrypticace
Copy link
Contributor

Very much appreciated — thanks!

@Sec-ant Sec-ant deleted the fix/repeated-backslash-escaping branch July 10, 2025 01:22
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.

Formating adds escape backslashes again and again with each run in 0.6.5
2 participants