How do I get kotlinpoet to use `trimIndent()` ins...
# squarelibraries
d
How do I get kotlinpoet to use
trimIndent()
instead of
trimMargin()
for multiline strings?
Copy code
// language=json
val json = """
    |{
    |    "type": "m.key.verification.start",
    |    "content": {
    |        "from_device": "BobDevice1",
    |        "transaction_id": "S0meUniqueAndOpaqueString",
    |        "method": "m.sas.v1"
    |    }
    |}
    """.trimMargin()
The margins here break the language injection feature.
Just in case you're looking for it. https://youtrack.jetbrains.com/issue/KT-14864
z
want to file an issue and we can discuss there?