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.
When the user right-click in the editor window, and choose "Format" in the context menu, or using alt-shift-f, the XML content is not properly formated with new-line characters and tabs. In netbeans 6.7.1, this works. I'm using Sun JDK 6 update 14
I confirm! It does not work. Product Version: NetBeans IDE 6.8 (Build 200912041610) Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01 System: Linux version 2.6.31.6-server-1mnb running on i386; UTF-8; pl_PL (nb)
What do you mean by 'not properly formatted' ? The indentation for elements and/or attributes is wrong ? Or do you expect the IDE to break long (?) lines or place each Element on its own line ... ? Thanks for clarification.
<?xml version="1.0" encoding="UTF-8"?><root><a></a><b></b></root> Format: <?xml version="1.0" encoding="UTF-8"?> <root> <a></a> <b></b> </root> If I remember correctly, the result was this: <?xml version="1.0" encoding="UTF-8"?> <root> <a></a> <b></b> </root> or: <?xml version="1.0" encoding="UTF-8"?><root><a></a><b></b></root> In versions 7.01,6.9.1 the error no longer occurs.
Created attachment 163572 [details] example POM.xml not formatted
The "Format" context item does not format the file at all.
Example from comment #5 is a duplicate of #269073; however the cause is different from bugs described in previous comments. Please open new bugs for new situations or different sample data. It is easier to duplicate them than to determine that a reopened report does not relate to the original :) Thanks. *** This bug has been marked as a duplicate of bug 269073 ***