Name

wrapline — Split the line into multiple lines by splitting on space characters

Synopsis

wrapline ?string? ?maxlen? html

Description

Given a line and a maximum length and option "-html" argument, split the line into multiple lines by splitting on space characters and making sure each line is less than maximum length.

If the third argument, "-html", is present, return the result with the lines separated by html <br> line breaks, otherwise the lines are returned separated by newline characters.

If a third argument called "-html" is present, the string is put together with html <br> line breaks, otherwise it's broken with newlines.