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 235756 - XML document with lots of comments doesn't get formatted by Source -> Format
Summary: XML document with lots of comments doesn't get formatted by Source -> Format
Status: RESOLVED WONTFIX
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-10 15:00 UTC by vbeffa
Modified: 2015-09-17 14:15 UTC (History)
0 users

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 vbeffa 2013-09-10 15:00:20 UTC
If you open a (long) XML document with lots of comments, formatting it to standard indentation (I use 4 spaces per tab) doesn't work. You have to select individual sections of the document and format them one at a time.

For example, solr's schema.xml (example here: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/collection1/conf/schema.xml?view=markup) is indented inconsistently, at less than 4 spaces per tab. Alt + Shift + F on this file does nothing.
Comment 1 Jiri Prox 2013-09-11 08:25:22 UTC
Reproduced in 


Product Version: NetBeans IDE 7.4 RC1 (Build 201309092300)
Java: 1.7.0_40; Java HotSpot(TM) 64-Bit Server VM 24.0-b55
Runtime: Java(TM) SE Runtime Environment 1.7.0_40-b39
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\7.4rc1
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\7.4rc1
Comment 2 Martin Balin 2015-09-17 14:15:37 UTC
Report from old NetBeans version. Due to code changes since it was reported likely not reproducible now. Feel free to reopen if happens in 8.0.2 or 8.1.