<!-- BUGS: Please use this template. --> <!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript --> <!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md --> From https://github.com/Microsoft/vscode/issues/40454#issuecomment-352566521 <!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. --> **TypeScript Version:** 2.7.0-dev.20171214 **Code** ```ts ( <div> text </div> ) ``` Run format **Expected behavior:** ```js ( <div> text </div> ) ``` **Actual behavior:** No change. Content remains: ```js ( <div> text </div> ) ``` The `</div>` is de-indented if the body is a tag instead of text: ```js ( <div> <span /> </div> ) ```
From microsoft/vscode#40454 (comment)
TypeScript Version: 2.7.0-dev.20171214
Code
Run format
Expected behavior:
Actual behavior:
No change. Content remains:
The
</div>is de-indented if the body is a tag instead of text: