Updated on 2026-08-14
This commit is contained in:
parent
8a6e1e6fc9
commit
887ff2a509
1 changed files with 1 additions and 3 deletions
|
|
@ -21,6 +21,4 @@ fun String.appendIfNotNull(value: String?, prefix: String? = null, postfix: Stri
|
|||
return StringBuilder(this).apply { appendIfNotNull(value, prefix, postfix) }.toString()
|
||||
}
|
||||
|
||||
fun StringBuilder.breakLine(count: Int = 1): StringBuilder {
|
||||
return append(List(count) { "\n" }.joinToString(separator = ""))
|
||||
}
|
||||
fun StringBuilder.breakLine(count: Int = 1): StringBuilder = append("\n".repeat(count))
|
||||
Loading…
Add table
Add a link
Reference in a new issue