std.txt.lines_of

std.txt

lines_of(input, width, force_split, remove_extra_spaces) -> lines

Split a string into lines of a given display width

Wraps text to the specified display width. By default, lines are only broken at spaces or hyphens. With force_split, lines break at any character. The remove_extra_spaces option normalizes consecutive spaces.