Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"keep arrary indentation' breaks when 3-space indents, process with 4-space setting #445

Open
bitwiseman opened this issue Apr 5, 2014 · 0 comments

Comments

@bitwiseman
Copy link
Member

Related to #333

//---- js_beautify input -------
function foo() {
   return [
      {
         one: 'x',
         two: [
            {
               id: 'a',
               name: 'apple'
            }, {
               id: 'b',
               name: 'banana'
            }
         ]
      }
   ];
}
//---- js_beautify expected ----
function foo() {
   return [
      {
         one: 'x',
         two: [
            {
               id: 'a',
               name: 'apple'
            }, {
               id: 'b',
               name: 'banana'
            }
         ]
      }
   ];
}
//---- js_beautify output ------
function foo() {
    return [
        {
            one: 'x',
            two: [
                {
                    id: 'a',
                    name: 'apple'
            }, {
                    id: 'b',
                    name: 'banana'
            }
         ]
      }
   ];
}
@bitwiseman bitwiseman changed the title "keep arrary indentation' is breaks when 3-space indents, process with 4-space setting "keep arrary indentation' breaks when 3-space indents, process with 4-space setting Apr 5, 2014
bitwiseman added a commit that referenced this issue Apr 5, 2014
Still more work to be done here. Opened #445

Fixes #340
Closes #333
@bitwiseman bitwiseman added the bug label Apr 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant