Used to wrap to a column width.

Optional parameters:

First - integer value indication how many columns to wrap to. Default is 80.
Second - string value used to wrap words with. Default is a newline.
Third - boolean value indicating whether to wrap at a word boundary (false) or exact character boundary (true). Default is false.

{'This input has been wrapped on word boundaries'|wordwrap:15}


Will output

This input has
been wrapped on
word boundaries

Last edited Feb 17, 2010 at 11:47 AM by JacoPretorius, version 1

Comments

No comments yet.