-
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
Messing up jsx formatting multi-line attribute #914
Comments
Have you set |
@bitwiseman Yes, I did. |
Me too with |
Thanks! I've added it to my list for the next version. |
Here's what I have found out about this issue: // successful - no change
return(
<a href="#" onClick={e => { e.preventDefault() onClick()}}>
{children}
</a>
);
// successful - no change
return <b><a href="#"
onClick={e => {
e.preventDefault()
onClick()
}}>
{children}
</a></b>;
// failure - adds spaces
return <a href="#"
onClick={e => {
e.preventDefault()
onClick()
}}>
{children}
</b>; |
bitwiseman
added a commit
to bitwiseman/js-beautify
that referenced
this issue
Aug 29, 2016
bitwiseman
changed the title
Messing up jsx formatting
Messing up jsx formatting multi-line attribute
Jul 18, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've got latest version installed. My files are opened as Babel JS files and I have e4x set to true in my configuration file. This is what I have currently:
However, after formatting it becomes this:
What do I need to change to have my files formatted properly or at least not messed up?
The text was updated successfully, but these errors were encountered: