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 91699

Summary: xml editor auto indent does not work with code-completion
Product: xml Reporter: ssoong <ssoong>
Component: Text-EditAssignee: issues@xml <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description ssoong 2007-01-02 20:21:47 UTC
NetBeans IDE Dev (Build 200701011900)
1.5.0_05; Java HotSpot(TM) Client VM 1.5.0_05-b05
Windows XP version 5.1 running on x86
=================================================

In a xml document,

<root>
<method name='z'>
x = 1;
[^place cursor here]
</root>

if I keyed in manually to close the method tag, auto-indent occurs:

<root>
    <method name='z'>
        x = 1;
    </method>
</root>

But if I depended on selecting from code-completion prompt to close the method 
tag, auto-indent would not occur.

Though I categorise this issue as a feature, I tend to think it's a defect. 
The defect being, auto-indent does not work equivalently but descriminates 
against use of code-completion from benefitting from auto-indent.
Comment 1 Marek Fukala 2007-02-16 14:49:46 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
welcomed.
Comment 2 Marek Fukala 2007-02-16 14:51:31 UTC
Reassigning to default owner of selected subcomponent. New owners are gladly
welcomed.