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 109262

Summary: Newline in HTML within RHTML files don't indent
Product: ruby Reporter: William Leonard <bleonard>
Component: EditingAssignee: Torbjorn Norbye <tor>
Status: RESOLVED FIXED    
Severity: blocker CC: jives, pjiricka, tslota
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 120491    
Bug Blocks:    

Description William Leonard 2007-07-10 15:57:33 UTC
Open an rhtml file and type <p>. Wait for code completion to present the closing </p>, accept the completion and then
press enter. The closing </p> is indented blow the opening. Producing a series of these in your code will look as follows:

        <p>            
            </p>
            <p>              
                </p>
                <p>                    
                    </p>
                    <p>                        
                        </p>

Alt+Shift+F corrects the formatting.
Comment 1 Torbjorn Norbye 2007-08-10 02:06:36 UTC
RHTML indenting is still in progress.
Comment 2 Torbjorn Norbye 2007-10-13 02:54:31 UTC
This is no longer a problem - but I note that when I press newline after <p> it doesn't indent. If you type some text
it's in column 0. Pressing Alt-Shift-F reformats and indents the text in. I think smart indent should have indented
after <p> but that's an HTML editing problem.
Comment 3 Tomasz Slota 2007-10-30 16:22:35 UTC
The latter problem depends directly on issue 120491
Comment 4 Torbjorn Norbye 2007-12-21 00:09:50 UTC
A lot of people are running into this bug; somebody just stated on nbusers that this bug is a blocker for them. 

Tomasz, any idea what this might be?
Comment 5 Tomasz Slota 2008-01-10 14:57:34 UTC
The new line indentation is set correctly by the HTML indent task, but then overridden by theindent task for the 'application/x-httpd-eruby/text/x-ruby' 
mime path. The x-ruby indent task should not modify the document when the cursor position is within another language path (embedded or on the same 
level).
Comment 6 Torbjorn Norbye 2008-01-27 22:33:41 UTC
Fixed:

changeset:   64914:0cd2fe7830b4
tag:         tip
user:        Tor Norbye <tor@netbeans.org>
date:        Sun Jan 27 14:29:22 2008 -0800
summary:     109262: Newline in HTML within RHTML files don't indent