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.
To reproduce, create an XML file with the content below. Upon formatting, all lines (or at least both root tags) should be moved to the beginning of the line. However, only the end tag of root is moved. NetBeans can't handle the fact that the comment contains a blank line. <?xml version="1.0" encoding="UTF-8"?> <root> <!-- --> </root> Product Version: NetBeans IDE 8.2 (Build 201609300101) Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb)
Fixed in jet-main#7f5d303dca1
*** Bug 258737 has been marked as a duplicate of this bug. ***
*** Bug 179335 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201703160002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/97f5d303dca1 User: Svata Dedic <sdedic@netbeans.org> Log: #269073: fixed formatter abort on comments with blank lines (exception swallowed)