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.
Product Version = NetBeans IDE Dev (Build 1) Operating System = Windows 7 version 6.1 running on amd64 Java; VM; Vendor = 1.7.0_45 Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08 Source/Format produce bad formatted braces (all braces configured to newline) Original: function bar(){return [function(){echo [];}];} Formatted: function bar() { return [function() { echo []; }]; } Expected: function bar() { return [function() { echo []; }]; }
Product Version: NetBeans IDE 8.0.2 Operating System: Ubuntu 14.04 Java: java version "1.7.0_65" OpenJDK Runtime Environment (IcedTea 2.5.3) (7u71-2.5.3-0ubuntu0.14.04.1) OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode) I also have the same problem. Here's the example after formatting. https://drive.google.com/file/d/0BxZZG04eDJFQazN6OFhNWVdSSTQ/view?usp=sharing
*** This bug has been marked as a duplicate of bug 247047 ***