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 104929 - Iterators and ERB tags not being recognized as identation levels, while automatic reformatting.
Summary: Iterators and ERB tags not being recognized as identation levels, while autom...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All Linux
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on: 116231
Blocks:
  Show dependency tree
 
Reported: 2007-05-28 00:39 UTC by gnufied
Modified: 2007-09-25 00:49 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 gnufied 2007-05-28 00:39:47 UTC
When using "Source -> Reformat Code", automatic code reformatting doesn't
recognize ERB (%) tags and assigns them same level of indentation no matter, if
there are iterators within.
Comment 1 Torbjorn Norbye 2007-06-19 19:00:17 UTC
I believe Marek is working on RHTML indentation
Comment 2 Jiri Kovalsky 2007-07-03 13:54:31 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 3 Torbjorn Norbye 2007-08-09 23:46:46 UTC
I have this mostly working, but not checked in yet because it depends on some editor infrastructure changes
(specifically, ability to get ruby indenter to run after html indenter since the html indenter is clobbering the ruby
indenter's work)
Comment 4 Torbjorn Norbye 2007-09-18 17:42:32 UTC
This should be working properly now. (There is also a property in the options panel under Ruby which controls whether
Ruby conditionals will indent embedded HTML content.)
Comment 5 Torbjorn Norbye 2007-09-18 20:55:44 UTC
Seems it was a really bad time to close this bug; it's been working for months but something changed in the HTML
formatter yesterday (http://deadlock.netbeans.org/fisheye/changelog/netbeans/html?cs=MAIN:tslota:20070917154018 )  which
has broken RHTML formatting ( http://deadlock.netbeans.org/hudson/job/rubytests ).  I'm investigating.
Comment 6 Torbjorn Norbye 2007-09-25 00:49:38 UTC
Okay, things should be working again.