メインコンテンツへスキップ

//ERDDAP/com.cohort.util/ScriptString2/noLongLinesAtSpace

noLongLinesAtSpace

[JVM]
open fun noLongLinesAtSpace(s: String, maxLength: Int, spaces: String): String

This is like noLongLines, but will only break at spaces.

Return​

the content of s, but with no long lines

Parameters​

JVM

sa String with multiple lines, separated by \n's
maxLengththe maximum line length allowed
spacesthe string to be inserted after the inserted newline, e.g., " "