mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't wrap before comma
This commit is contained in:
@@ -126,7 +126,7 @@ public class PyBlock implements ASTBlock {
|
||||
if (ourListElementTypes.contains(parentType)) {
|
||||
// wrapping in non-parenthesized tuple expression is not allowed (PY-1792)
|
||||
if ((parentType != PyElementTypes.TUPLE_EXPRESSION || grandparentType == PyElementTypes.PARENTHESIZED_EXPRESSION) &&
|
||||
!ourBrackets.contains(childType)) {
|
||||
!ourBrackets.contains(childType) && childType != PyTokenTypes.COMMA) {
|
||||
wrap = Wrap.createWrap(WrapType.NORMAL, true);
|
||||
}
|
||||
if (needListAlignment(child) && !isEmptyList(_node.getPsi())) {
|
||||
|
||||
Reference in New Issue
Block a user