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 193950

Summary: That the json value object intend options to not every item in one line;
Product: javascript Reporter: fortruth <fortruth>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description fortruth 2010-12-31 03:54:53 UTC
Product Version = NetBeans IDE 6.9 (Build 201011082200)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_14
Runtime = Java HotSpot(TM) Client VM 14.0-b16

for example code now when indent's result;

  var medium = [
    {
        "medium":"gas",
        "vlid":"22155"
    },

    {
        "medium":"water",
        "vlid":"22255"
    },

    {
        "medium":"power",
        "vlid":"22227"
    }
    ];


if could provider an options to stop  every item in new  line; I can have the expect indent result like

  var medium = [
    { "medium":"gas", "vlid":"22155" },
    { "medium":"water", "vlid":"22255" },
    { "medium":"power", "vlid":"22227" }
    ];
Comment 1 Petr Hejl 2012-09-26 21:02:26 UTC
Now, in 7.3, it is possible to disable such wrapping in formatter. Is that what you expect? It won't change multiple lines to single line - it will just keep the lines as you wrote them.
Comment 2 fortruth 2012-09-30 13:23:50 UTC
(In reply to comment #1)
> Now, in 7.3, it is possible to disable such wrapping in formatter. Is that what
> you expect? It won't change multiple lines to single line - it will just keep
> the lines as you wrote them.

yes, exactly.

thanks for your hard works. have a coffee break. :).

So, It have been in the daily build? 

if yes, I am expecting to have a try now. :)