replaceIndent

fun String.replaceIndent(newIndent: String = ""): String(source)

Detects a common minimal indent like it does trimIndent and replaces it with the specified newIndent.

Since Kotlin

1.0