Introduce intention: trimMargin <--> trimIndent #KT-25056 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-07-03 21:22:18 +09:00
committed by Nikolay Krasko
parent df6d4f358a
commit 9e83506c02
37 changed files with 496 additions and 0 deletions
@@ -0,0 +1,7 @@
fun test() {
val x =
<spot>"""
|a
|b
""".trimMargin()</spot>
}
@@ -0,0 +1,7 @@
fun test() {
val x =
<spot>"""
a
b
""".trimIndent()</spot>
}
@@ -0,0 +1,5 @@
<html>
<body>
This intention converts an <b>trimIndent()</b> call to an <b>trimMargin()</b> call.
</body>
</html>