mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
Keep line breaks works for Polyadic expressions (IDEA-153329)
This commit is contained in:
@@ -644,4 +644,13 @@ public class JavaFormatterSpaceTest extends AbstractJavaFormatterTest {
|
||||
);
|
||||
}
|
||||
|
||||
public void testKeepLineBreaksWorks_InsidePolyExpression() {
|
||||
getSettings().KEEP_LINE_BREAKS = false;
|
||||
doMethodTest(
|
||||
"int x = (1 + 2 + 3) *\n" +
|
||||
" (1 + 2 + 2) * (1 + 2);",
|
||||
"int x = (1 + 2 + 3) * (1 + 2 + 2) * (1 + 2);"
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user