KT-1545 reformatting of kotlin code uses incorrect indentation for multi-line kdoc comments
#KT-1545 Open
This commit is contained in:
@@ -1,9 +1 @@
|
|||||||
package p1.p2;/**
|
package p1.p2;/** some */
|
||||||
* Created with IntelliJ IDEA.
|
|
||||||
* User: someone
|
|
||||||
* Date: 2/16/12
|
|
||||||
* Time: 4:23 PM
|
|
||||||
* To change this template use File | Settings | File Templates.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// TODO: Fix formatting of doc comments
|
|
||||||
@@ -1,11 +1,3 @@
|
|||||||
package p1.p2;
|
package p1.p2;
|
||||||
|
|
||||||
/**
|
/** some */
|
||||||
* Created with IntelliJ IDEA.
|
|
||||||
* User: someone
|
|
||||||
* Date: 2/16/12
|
|
||||||
* Time: 4:23 PM
|
|
||||||
* To change this template use File | Settings | File Templates.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// TODO: Fix formatting of doc comments
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* Hello
|
||||||
|
*/
|
||||||
|
class Some {
|
||||||
|
/**
|
||||||
|
* Returns the collection of functions with duplicate function names filtered out
|
||||||
|
* so only the first one is included
|
||||||
|
*/
|
||||||
|
fun test() {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/**
|
||||||
|
* Hello
|
||||||
|
*/
|
||||||
|
class Some {
|
||||||
|
/**
|
||||||
|
* Returns the collection of functions with duplicate function names filtered out
|
||||||
|
* so only the first one is included
|
||||||
|
*/
|
||||||
|
fun test() {
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -88,6 +88,10 @@ public class JetFormatterTest extends AbstractJetFormatterTest {
|
|||||||
doTestWithInvert();
|
doTestWithInvert();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void testSaveSpacesInDocComments() throws Exception {
|
||||||
|
doTest();
|
||||||
|
}
|
||||||
|
|
||||||
public void testSingleLineFunctionLiteral() throws Exception {
|
public void testSingleLineFunctionLiteral() throws Exception {
|
||||||
doTest();
|
doTest();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user