string.wrap()

Wraps text so that each line has a specified maximum number of characters.

string.wrap( string, limit [, strip ] )

Returns: String

Argument Description
string
string, required

The text to wrap.

limit
number, required

Positive integer maximum number of characters to allow on a line.

strip
boolean, optional

Whether to remove all existing newline and carriage return characters in the input string with spaces before wrapping the text.

Examples

There are currently no examples for this function

See also