-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Fix child element indentation in multiline lists #3827
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
Conversation
Now waiting feedback. |
So after the fix we have:
this means probably we will have this:
and seems that by unwrapping return we will have this:
Is that correct? Honestly I don't like situation when function parameters are indented at same level as its function call. |
@wgebczyk No, this fix will affect only when:
foo({ // An object literal starts in the first line
}, // An object literal ends in the second line, not the first line
3 // Thus, no additional indentation here
),
foo(
{ // starts in the second line
},
3 // Additional indentation here
);
foo({}, // starts and ends in the first line
3 // Additional indentation here
); |
Seems to be reasonable. Thanks! |
…rterParamListIndentFix
@vladima can you take a look? |
09b168d
to
f52aa4b
Compare
… shorterParamListIndentFix
… shorterParamListIndentFix
3bba7c4
to
6b27eaf
Compare
… shorterParamListIndentFix
can we merge it please? |
I'm closing this because this is incompatible with new PR #13574. I will open a cleaner PR if it is merged. |
Fixes #3817, fixes #5834, fixes #9437.
Please don't do commit-by-commit review as some intermediate changes were later removed.
Note (July 1, 2016): This sadly reverts #8364.
Input:
Fix: