don't wrap before comma

This commit is contained in:
Dmitry Jemerov
2012-08-22 16:47:32 +02:00
parent d358309fcc
commit 21d6cb7512
@@ -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())) {