com.autonomousapps.internal.utils.text.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dependency-analysis-gradle-plugin Show documentation
Show all versions of dependency-analysis-gradle-plugin Show documentation
Analyzes dependency usage in Android and JVM projects
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
package com.autonomousapps.internal.utils
/**
* Appends value to the given Appendable and simple `\n` line separator after it.
*
* Always using the same line separator on all systems to allow for reproducible outputs.
*
* Borrowed from `org.gradle.kotlin.dsl.support`.
*/
internal fun Appendable.appendReproducibleNewLine(value: CharSequence = ""): Appendable {
assert('\r' !in value) {
"Unexpected line ending in string."
}
return append(value).append("\n")
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy