kotlin-stdlib / kotlin.text / replaceIndent replaceIndent Common JVM JS Native 1.0 fun String.replaceIndent(newIndent: String = ""): String Detects a common minimal indent like it does trimIndent and replaces it with the specified newIndent.