atom-react icon indicating copy to clipboard operation
atom-react copied to clipboard

Reformat JSX insert empty lines

Open delacruzsippel opened this issue 10 years ago • 4 comments

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>

delacruzsippel avatar Apr 13 '16 11:04 delacruzsippel

i have this problem too Atom - 1.9.2 React - 0.15.0 Mac OS X

Prasanna-sr avatar Aug 05 '16 10:08 Prasanna-sr

Issues exists in React 0.16.0 too

Prasanna-sr avatar Aug 10 '16 08:08 Prasanna-sr

Had been facing the same issue. Instead of reformat, i am using Auto-indent feature after changing the filetype to JSX.

RanjithNair avatar Aug 15 '16 20:08 RanjithNair

+1

lokewei avatar Nov 11 '16 15:11 lokewei