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 123496 - Indentation not working in rhtml files
Summary: Indentation not working in rhtml files
Status: RESOLVED WORKSFORME
Alias: None
Product: ruby
Classification: Unclassified
Component: RHTML (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-12-05 17:32 UTC by dclarizio
Modified: 2009-10-07 13:39 UTC (History)
2 users (show)

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 dclarizio 2007-12-05 17:32:11 UTC
I have all of my indentation settings set to 2 characters per tab, no conversion to spaces.  Ruby/Rails rhtml files show
8 characters per tab when opened, however, when adding a new tab, the cursor moves 2 characters and they are converted
to 2 spaces.
By default, the rhtml extension uses the html indentation engine, which I also have set to 2 characters with no space
conversion.  I tried creating an rhtml indentation engine, with the same results.
I am running NetBeans IDE 6.0 (Build 200711261600) on Linux (Ubuntu 7.04), but have a colleague who has verified the
problem running the same Netbeans version on Vista.
The 8 character tabs are not being converted to spaces, but it is very hard to work with these files as the code runs
very far to the right when indented.
Also, this issue did not exist on Netbeans 6 beta 1 or 2.
Thank you in advance, for your support.
 . . . Dan Clarizio
Comment 1 Petr Jiricka 2008-03-31 00:40:41 UTC
Hi Dan,
can you please checl whether this is still a problem in the latest NetBeans 6.1 builds? 
You can download them here:
http://deadlock.netbeans.org/hudson/job/trunk/

Thanks.
Comment 2 Martin Krauskopf 2008-03-31 11:42:20 UTC
I'm also not possible to set tab-width. (like e.g. with :tabstop in Vim). But we are feature-frozen, TM -> future.
Comment 3 Erno Mononen 2009-10-07 13:39:03 UTC
This seems to work for me, or I'm not understanding the problem correctly. Can you please try the latest dev build 
(http://bits.netbeans.org/dev/nightly/latest/) and reopen if this is still an issue? Thanks.