wrap-lines ( string width -- newlines )
String word wrapping

Next:wrap-string ( string width -- newstring )


Vocabulary
wrap.strings

Inputs
stringa string
widthan integer


Outputs
newlinessequence of strings


Word description
Given a string, divides it into a sequence of lines where each line has no more than width characters, unless there is a word longer than width. Linear whitespace between words is converted to a single space.

Definition