kotlin-stdlib / kotlin.text / prependIndent prependIndent Common JVM JS Native 1.0 fun String.prependIndent(indent: String = " "): String Prepends indent to every line of the original string. Doesn't preserve the original line endings.