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

Incorrect indentation after multi-line self-closing element

Open jackocnr opened this issue 6 years ago • 2 comments

See below gif. If self-closing element is on a single line, then the next line indentation works correctly. If I change the self-closing element to be over multiple lines, then the next line indentation aggressively enforces the wrong indentation. Both when you hit enter to create a new line, and when you type any character on that line.

jsx-indentation

jackocnr avatar May 11 '18 10:05 jackocnr

Was just about to post about this; I'm having the same issue. I tried writing the same HTML in a .html file and it works fine, but not with JSX

demeralde avatar May 13 '18 14:05 demeralde

+1 This is incredibly obnoxious. If you fix the tabbing manually, it will break itself any time you type more valid characters on the new line.

CASandmann avatar Aug 24 '18 19:08 CASandmann