Sam Garfinkel
11/22/2019, 6:44 PMval inner = """
- List Entry 1
- List Entry 2
""".trimIndent()
val outer = """
Outer:
$inner
""".trimIndent()
fun main() {
println(outer)
}
What I get:
Outer:
- List Entry 1
- List Entry 2
What I want (expect):
Outer:
- List Entry 1
- List Entry 2
Casey Brooks
11/22/2019, 6:50 PM.trimMargin()
instead of .trimIndent()
on the second, trimming to the pipes from the first https://pl.kotl.in/AIX3d_2C5Shawn
11/22/2019, 6:53 PMval inner = """
- List Entry 1
- List Entry 2
""".trimIndent()
val outer = """
|Outer:
|${inner.prependIndent(" ")}
""".trimMargin()
Sam Garfinkel
11/22/2019, 7:04 PMCasey Brooks
11/22/2019, 7:12 PMSam Garfinkel
11/22/2019, 7:14 PM