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.
in version 6.7.1 and older, the option format generates new lines, so the following xml text <?xml version="1.0" encoding="UTF-8"?> <root><a><b><c value="1"/><d value="2"/></b></a></root> becomes this one <?xml version="1.0" encoding="UTF-8"?> <root> <a> <b> <c value="1"/> <d value="2"/> </b> </a> </root> but int 6.8 this option does format but without generaing new lines, so the text becomes this other <?xml version="1.0" encoding="UTF-8"?> <root><a><b><c value="1"/><d value="2"/></b></a></root> so it can't be used as xml indentation tool as I used to. I don't know if this is a bug or a feature, but at least there should be an option to decide if new lines should be added or not.
I'm not able to reproduce this bug on: Product Version: NetBeans IDE Dev (Build 201005122200) Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16 System: Linux version 2.6.18-8.el5 running on i386 I've performed all steps from this bug description and got the correct result (see the attached screen shots "screenshot-XML_before_format.png" and "screenshot-XML_after_format.png").
Created attachment 99009 [details] screenshot-XML_before_format.png
Created attachment 99010 [details] screenshot-XML_after_format.png
this bug was fixed many builds ago, I think it was fixed in early builds of 6.9