atom-react
atom-react copied to clipboard
Reformat JSX insert empty lines
Atom Version: 1.6.2 atom-react: v0.15.0 OS: Windows 10
I've got a problem with the reformat of jsx. Indentation seems to work well, but a lot of empty lines are inserted. If I Reformat JSX a second time I get double empty lines and so on.
Before Reformat JSX
<div className="row">
<div className="container">
</div>
</div>
after Reformat JSX
<div className="row">
<div className="container">
</div>
</div>
i have this problem too Atom - 1.9.2 React - 0.15.0 Mac OS X
Issues exists in React 0.16.0 too
Had been facing the same issue. Instead of reformat, i am using Auto-indent feature after changing the filetype to JSX.
+1