Paste inside indented .trimIndent() raw string: respect indentation (KT-31810)
#KT-31810 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
d3b826c71d
commit
147f805c56
@@ -0,0 +1,9 @@
|
||||
fun test() = doTest("""
|
||||
def foo(a)
|
||||
a ? 0 : 1
|
||||
end
|
||||
""".trimIndent())
|
||||
|
||||
fun doTest(rubyCode: String) {
|
||||
// some code here
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun test() = doTest("""
|
||||
<caret>
|
||||
""".trimIndent())
|
||||
|
||||
fun doTest(rubyCode: String) {
|
||||
// some code here
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
def foo(a)
|
||||
a ? 0 : 1
|
||||
end
|
||||
@@ -0,0 +1,9 @@
|
||||
fun test() = doTest("""
|
||||
def foo(a)
|
||||
a ? 0 : 1
|
||||
end
|
||||
""".trimIndent())
|
||||
|
||||
fun doTest(rubyCode: String) {
|
||||
// some code here
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fun test() = doTest("""
|
||||
<caret>
|
||||
""".trimIndent())
|
||||
|
||||
fun doTest(rubyCode: String) {
|
||||
// some code here
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
def foo(a)
|
||||
a ? 0 : 1
|
||||
end
|
||||
Reference in New Issue
Block a user