failing test for PY-8195 #4

This commit is contained in:
Dmitry Jemerov
2013-01-29 20:31:11 +01:00
parent 7e180ce6dd
commit af51692b45
4 changed files with 13 additions and 1 deletions
@@ -171,7 +171,7 @@ public class PyBlock implements ASTBlock {
else {
childIndent = parentType == PyElementTypes.PARAMETER_LIST || isInControlStatement()
? Indent.getContinuationIndent()
: Indent.getNormalIndent();
: Indent.getNormalIndent(true);
}
}
else if (parentType == PyElementTypes.DICT_LITERAL_EXPRESSION || parentType == PyElementTypes.SET_LITERAL_EXPRESSION ||
@@ -0,0 +1,4 @@
logging.warn('some_very_{long}_'
'amount_of_{text}'.format(
long='long',
text='text'))
@@ -0,0 +1,4 @@
logging.warn('some_very_{long}_'
'amount_of_{text}'.format(
long='long',
text='text'))
@@ -268,6 +268,10 @@ public class PyFormatterTest extends PyTestCase {
doTest();
}
public void testIndentInNestedCall() { // PY-8195
doTest();
}
public void testIndentAfterBackslash() {
doTest();
}