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.
If i set wrapping of objects to "If long", the first object property is kept on the same line as the curly brace. To move even the first properties on a separate line, i have to use "Always" for object wrapping. But if i do that, even empty objects are wrapped. So either we should have an option to choose, if we want emtpy objects to wrap or the behaviour should change to ignore empty objects: Current: var o = { }; Expected: var o = {};
Hi everyone, I currently have the same issue. I try to use this peace of source code: stock = {}; For Netbeans, it is not a valid syntax. Using this one: stock = { }; resolve the issue... and of course I don't know why. Thanks for taking this issue in account please.
Fixed in web-main c72918f29136.
Integrated into 'main-silver', will be available in build *201308202300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c72918f29136 User: Petr Hejl <phejl@netbeans.org> Log: #228716 - Wrapping of empty objects