SortContentAction: fix \n placement in presence of comments: IDEA-199734

This commit is contained in:
Roman.Ivanov
2018-10-02 12:08:47 +07:00
parent 136a8ea0c5
commit 19b4764435
4 changed files with 35 additions and 7 deletions
@@ -0,0 +1,15 @@
// "Sort content" "true"
class X {
public void x() {
doTest("1 ",
"T", "and", "between", "div", "eq", "false", "ge", "gt",
"instanceof", "le", "lt", "matches", "mod", "ne", "new", "not", "null", "or",
"true" //comment
);
}
private void doTest(String... s) {
}
}
@@ -16,7 +16,6 @@ public class Main {
"foo" /*3*/ // 2
// 5
);
}
}
@@ -0,0 +1,14 @@
// "Sort content" "true"
class X {
public void x() {
doTest("1 <caret>",
"and", "between", "div", "eq", "false", "ge", "gt", "instanceof",
"le", "lt", "matches", "mod", "ne", "new", "not", "null", "or", "true", //comment
"T");
}
private void doTest(String... s) {
}
}