Skip to main content

wordwrap

Wrap words at arg line length.

def wordwrap(
value: string,
arg: integer
) - > string

Wrap words at arg line length.

Parameters

NameTypeDescription
valuestringThe text content to be wrapped.
argintegerThe maximum number of characters allowed per line before wrapping occurs.

Returns

TypeDescription
stringThe input string with newline characters inserted at the specified line length intervals.