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.
Similar to issue 155491 the Javascript code-format feature is breaking alignment of braces. For example: $("#deviceTree").jstree({"plugins" : ["themes", "html_data", "ui", "crrm", "hotkeys"], "themes": { "theme": "default" } }); becomes: $("#deviceTree").jstree({"plugins" : ["themes", "html_data", "ui", "crrm", "hotkeys"], "themes": { "theme": "default" } }); Expected behavior: the opening and closing braces after "themes" should line up vertically.
Reproducible
This also affects JSON code-format.
This happens because :\n means the next line is considered a continuation. Should be fixed or there should be an option for that.
Even if it's a continuation (which I think doesn't look very nice alignment-wise), the closing brace still doesn't line up (and it should).
(In reply to comment #4) > Even if it's a continuation (which I think doesn't look very nice > alignment-wise), the closing brace still doesn't line up (and it should). I hasn't been arguing about that. As I wrote - should be fixed.
Fixed in web-main 394aca1cf468.
Integrated into 'main-golden', will be available in build *201209090001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/394aca1cf468 User: Petr Hejl <phejl@netbeans.org> Log: #198819 - Code-format should line up braces