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 120657 - Build.xml formatting is broken
Summary: Build.xml formatting is broken
Status: RESOLVED INCOMPLETE
Alias: None
Product: xml
Classification: Unclassified
Component: Text-Edit (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Samaresh Panda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-31 16:21 UTC by William Leonard
Modified: 2007-10-31 21:04 UTC (History)
1 user (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 William Leonard 2007-10-31 16:22:01 UTC
If I enter a new element, like <target>, wait for code completion to propose the closing element and then hit enter, the
elements are not aligned:

    <target>
</target>

Running the format command command on the file appears to have no effect whatsoever.
Comment 1 Jesse Glick 2007-10-31 17:44:07 UTC
Working for me on JDK 6u2, Ubuntu. In Anagram Game, open build.xml. At last line of project type

    <target>

ask for CC, get

    <target></target>

hit Enter, get

    <target>
        <!--CARET-->
    </target>

If I change to

    <target>
</target>

and press Alt-Shift-F I get

    <target>
    </target>

as expected.
Comment 2 William Leonard 2007-10-31 19:09:17 UTC
So Jesse, what else can I provide you here? I'm running java version "1.5.0_07" on Mac OS X 10.4. Do have a debugging
flag I can pass in for this one? /Brian
Comment 3 Jesse Glick 2007-10-31 19:13:56 UTC
I have no idea. Formatting is not even implemented by the Ant module. Do you see the same behavior in general XML files?
Comment 4 William Leonard 2007-10-31 21:04:59 UTC
No. Even weirder is that after testing in other xml files (project.xml), build.xml now appears to behave correctly. I'll
keep an eye on it.