-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 array indentation" not working #333
Comments
I should add that what I expected was for no changes to be made to the input code. |
Input: function foo() {
return [
{
one: 'x',
two: [
{
id: 'a',
name: 'apple'
},
{
id: 'b',
name: 'banana'
}
]
}
];
} Actual Output: function foo() {
return [{
one: 'x',
two: [
{
id: 'a',
name: 'apple'
},
{
id: 'b',
name: 'banana'
}
]
}];
} |
Interesting bug. function foo() {
return [{
one: 'x',
two: [
{
id: 'a',
name: 'apple'
},
{
id: 'b',
name: 'banana'
}
]
}];
}
function foo() {
a = [
{
one: 'x',
two: [
{
id: 'a',
name: 'apple'
},
{
id: 'b',
name: 'banana'
}
]
}
];
return a;
}
foo(
[
{
one: 'x',
two: [
{
id: 'a',
name: 'apple'
},
{
id: 'b',
name: 'banana'
}
]
}
]);
foo([
{
one: 'x',
two: [
{
id: 'a',
name: 'apple'
},
{
id: 'b',
name: 'banana'
}
]
}
]); So, we have a hole in our test matrix, which maybe specific to the |
Did a recent change fix it? I cannot reproduce the problem in the Web UI On Thu, Nov 7, 2013 at 3:12 PM, Liam Newman [email protected]:
R. Mark Volkmann |
It's there, I can still repro it, double check your settings. |
Perhaps I misunderstood. I copied the code from your email today, pasted it On Thu, Nov 7, 2013 at 3:53 PM, Liam Newman [email protected]:
R. Mark Volkmann |
The two attached screen shots show some simple input and output that demonstrate the issue. Also notice the incorrect closing brace indentation for the objects inside the array property "two".
This is the input:
This is the output:
The text was updated successfully, but these errors were encountered: