This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Each time Source -> Format is selected on an erb file several spurious spaces get inserted. For example in this erb snippet: <p> This sentence gets indented correctly by source format </p> <% if true %> <p> This sentence only gets indented correctly the first time source format is selected This will shift on every subsequent invocation </p> <% end %>
Seems to be fixed in 6.9 dev builds, please reopen if you can still reproduce this with 6.9 Beta or the latest daily. Thanks.
I found what the problem is: This bug ONLY happens if in the following setting is NOT checked: Preferences => Editor => Formatting => Language: RHTML => Expand tabs to spaces The default setting is that tabs are converted to spaces so not many people will run into this, so I am mainly putting this here for reference.
Created attachment 104826 [details] java file that gets additional spaces when formatted Every time the source is formatted with Alt-Shift-F, a space is added line 34 just before the '{'.
I also have the same issue with NB 7.0 beta on windows XP and windows 7, with a java file (see attachement).