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 270126 - Source formatting not working as expected
Summary: Source formatting not working as expected
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-20 07:10 UTC by Silmarilion
Modified: 2017-03-20 07:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (151.14 KB, text/plain)
2017-03-20 07:10 UTC, Silmarilion
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Silmarilion 2017-03-20 07:10:40 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.4.0-53-generic running on amd64
Java; VM; Vendor = 1.8.0_121
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.121-b13

Reproducibility: Happens every time

STEPS:
  * Create a new JSON file
  * Populate it with nested arrays and objects
  * Run source format (ALT+SHIFT+F)

ACTUAL:
  The json file is wrongly formated:

  {
   "private": true, "ignore": [
     "**/.*", "node_modules", "bower_components", "test", "tests"
   ], "dependencies": {
     "components-font-awesome": "^4.7.0", "bootstrap-sass": "^3.3.7"
   }
 }

EXPECTED:
<code>
  {
  "private": true,
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "components-font-awesome": "^4.7.0",
    "bootstrap-sass": "^3.3.7"
  }
}
</code>
Comment 1 Silmarilion 2017-03-20 07:10:44 UTC
Created attachment 163888 [details]
IDE log