replace Indent
Появилось в Kotlin: 1.0
fun String.replaceIndent(newIndent: String = ""): String
Определяет общий минимальный отступ, как это делает trimIndent, и заменяет его указанным newIndent.
© 2010–2026 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/replace-indent.html