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.

Bug 125006 - html.erb file reformat multiple times results in more and more indentation
Summary: html.erb file reformat multiple times results in more and more indentation
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-10 02:30 UTC by jamespb
Modified: 2008-01-25 08:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jamespb 2008-01-10 02:30:40 UTC
Start with foo.html.erb that looks like:

<%
whatever do
       stuff
end
%>
Keep hitting alt-shift-F, and the "stuff" line gets more and more indentation.

Product Version: NetBeans Ruby IDE 20080109120642
Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nbrubyide)
Userdir: C:\Users\James\AppData\Roaming\.nbrubyide\dev
Comment 1 jamespb 2008-01-22 22:28:41 UTC
Repros on Linux, build 6266

Product Version: NetBeans Ruby IDE 20080122123233
Java: 1.6.0_03; Java HotSpot(TM) Server VM 1.6.0_03-b05
System: Linux version 2.6.18-8.1.15.el5xen running on i386; UTF-8; en_US (nbrubyide)
Userdir: /home/james/.nbrubyide/dev
Comment 2 jamespb 2008-01-22 22:31:00 UTC
I should add that I think this is a fairly serious problem - it means that NetBeans frequently damages erb files when
you hit alt-shift-F.
Comment 3 Torbjorn Norbye 2008-01-25 08:57:03 UTC
Fixed in 6.1 - sorry about the delay.

(With some duct tape. We're working on some serious changes in this area to make editing of embedded languages etc. much
better).

Please let me know if you see any other serious issues in this area.

IDE:-------------------------------------------------
IDE: [1/25/08 9:55 AM] Committing started
Checking in editing/src/org/netbeans/modules/ruby/Formatter.java;
/cvs/ruby/editing/src/org/netbeans/modules/ruby/Formatter.java,v  <--  Formatter.java
new revision: 1.29; previous revision: 1.28
done
Checking in rhtml/src/org/netbeans/modules/ruby/rhtml/RhtmlIndentTask.java;
/cvs/ruby/rhtml/src/org/netbeans/modules/ruby/rhtml/RhtmlIndentTask.java,v  <--  RhtmlIndentTask.java
new revision: 1.7; previous revision: 1.6
done
IDE: [1/25/08 9:55 AM] Committing finished