[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27000: 25.2; js-jsx-mode incorrect indentation
From: |
Renato Ferreira |
Subject: |
bug#27000: 25.2; js-jsx-mode incorrect indentation |
Date: |
Fri, 19 May 2017 19:45:28 -0300 |
Hello,
(I don't know if this bug has the same root cause from bug#24986, so my
apologies if it does.)
Using js-jsx-mode produces incorrect indentation on nested JSX elements
when there is an element inside a parentheses inside a JS expression:
function testA() {
return (
<div>
<div> { ( <div/> ) } </div>
</div>
);
}
function testB() {
return (
<div>
<div> { <div/> } </div>
</div>
);
}
testA indents correctly, but testB does not. This causes all sorts of
indentations problems after an incorrect indented line.
Thanks a lot in advance!
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#27000: 25.2; js-jsx-mode incorrect indentation,
Renato Ferreira <=