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.
Steps to reproduce: 1. Download NB 6.0.1 or http://deadlock.netbeans.org/hudson/job/trunk/lastSuccessfulBuild/artifact/nbbuild/dist/zip/ 2. Tools>Options>Editor>Indentation>Number of spaces per indent = 2, tab size = 2 3. Open up a html file (I tried index.html.erb) and paste this code {{{ <% form_for :model do |f| %> <fieldset> <legend>Header</legend> <%= error_messages_for :model %> <ul> <li class="submit"><%= submit_tag "Siųsti" %></li> </ul> </fieldset> <% end %> }}} 4. Define a Ruby code template (I called it ffi): {{{ <li> <label for="${model}_${attr}">${Title}</label> <span><%= ${f}.${text_field} :${attr} %></span> </li> }}} 5. Put the cursor in the blank line after ul tag. 6. Type ffi<TAB> Expected result: {{{ <% form_for :model do |f| %> <fieldset> <legend>Header</legend> <%= error_messages_for :model %> <ul> <li> <label for="model_attr">Title</label> <span><%= f.text_field :attr %></span> </li> <li class="submit"><%= submit_tag "Siųsti" %></li> </ul> </fieldset> <% end %> }}} Actual result: {{{ <% form_for :model do |f| %> <fieldset> <legend>Header</legend> <%= error_messages_for :model %> <ul> <li> <label for="model_attr">Title</label> <span><%= f.text_field :attr %></span> </li> <li class="submit"><%= submit_tag "Siųsti" %></li> </ul> </fieldset> <% end %> }}} As you can see, everything after li is intented wrongly.
Err, mistype, when i typed "Ruby code template" I actually meant "RHTML code template".
Still valid.