-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Beautifier does not re-indent E4X/JSX literals #665
Comments
@zebzhao |
From zebzhao in email:
Then can you please fix this? I really need this.
As you're probably noticing from the issues filed on your project indenting well is harder than it first appears.
I do this project in my spare time. That is why I said your contribution would be helpful.
I'll see what I can do.
|
It might be possible to look at the incoming code to try to detect what the indenting was and then use that to replace the leading whitespace for each line in the xml. Or even some simplistic forcing of indents (though that would result in other kinds of inaccuracy). Long term the right thing would be to extract xml and/or react beautifiers from the html beautifier and have the javascript beautifier call out to that when it encounters an xml block inside js. |
The text was updated successfully, but these errors were encountered: