-
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
single attribute breaks jsx beautification #834
Comments
Yeah, I didn't know http://stackoverflow.com/questions/6926442/is-an-xml-attribute-without-a-value-valid Is this a JSX thing? |
Pretty sure this is a jsx thing. |
I got same problem today with JSX. I'm using Atom editor with atom-beautify package. I need to change beautifier for |
I still got the error, is this bug fixed? still got this error:
if do format for the entire file, will get:
|
Input : Out put : The space between |
@c-gargi Did you turn on |
Yes I did @bitwiseman |
@c-gargi When I use |
Thanks for your hard work. Apart from infamous one-lining
{foo:'bar'}
issue (wink wink), I'm having some different issue here. Possibly duplicate issue, but don't know the specific keyword to search here, so I'm submitting one.Problem
single attribute breaks jsx beautification. If I either put out
someAttr
or replace tosomeAttr={true}
from the repro case below, it works as expected.Edit: Also it seems like only happening at the out-most jsx tag.
Environment: atom-beautify, jsbeautifier.org
Repro
Input
Expected
Output
The text was updated successfully, but these errors were encountered: