Community
Participate
Working Groups
Build Identifier: 20090621-0832, The Javascript formatter mangles code indentation badly, when line comments are used in either conditional blocks or function bodies. Replacing the line comments with block comments will, however, produce the correct indentation. Please see attached files for comparison between using line comments and block comments. Reproducible: Always Steps to Reproduce: 1. line-comments-wrong.js show incorrectly formatted Javascript, whereas block-comments-correct.js shows that replacing line comments with block comments produces correct formatting.
Created attachment 168014 [details] line-comments-wrong.txt
Created attachment 168015 [details] block-comments-correct.txt
Also occurs on Eclipse 3.6 M7, Build 20100506-2000
*** This bug has been marked as a duplicate of bug 315234 ***