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 20816

Summary: Use 4-space indentation in XMLUtil.write
Product: platform Reporter: Jesse Glick <jglick>
Component: -- Other --Assignee: issues@platform <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: issues, issues, issues
Priority: P4    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Jesse Glick 2002-02-24 18:41:32 UTC
[dev feb 22] Currently the NMW uses a 2-space indentation in the layer
it created. 4-space is more standard. Also a space is placed before
the /> ending an empty element, which is slightly nonstandard I think.
If possible, use a code formatter for text/xml, but that is less
important.
Comment 1 Marek Grummich 2002-07-22 08:20:39 UTC
Target milestone was changed from '3.4' to TBD.
Comment 2 akemr 2003-01-14 13:16:07 UTC
Reassign to Jesse, because I'm no longer in core team.
Comment 3 Jesse Glick 2003-01-14 15:12:39 UTC
Problem lies in XMLUtil.write which currently defaults to using
Crimson, it seems, and Crimson appears to be hardcoded with this
behavior. Would prefer Xerces, I think. Probably an openide issue.
Comment 4 Jesse Glick 2003-03-26 15:58:49 UTC
This method should prefer the Xerces DOM writer, which has a decent
appearance, to the Crimson writer, which uses 2-space indentation and
some other strange conventions and is much less configurable.
Comment 5 Jesse Glick 2003-03-26 15:59:10 UTC
*** Issue 32339 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2003-03-26 16:00:04 UTC
Useful for New Module Wizard, Ant shortcut wizard, etc.
Comment 7 Jesse Glick 2003-03-26 16:00:41 UTC
I think Petr owns this class.
Comment 8 _ pkuzel 2003-09-03 11:10:31 UTC
Unscheduling from my todo list. New owner is gladly welcome. Meanwhile assigning
to abstract issues@xml.netbeans.org owner.
Comment 9 Jesse Glick 2006-06-06 15:06:52 UTC
Fixed a while back.