======wordwrap====== Wrap a [[PTPScript:Types:String|String]] to a given number of characters. \\ **Syntax** * ''[[PTPScript:Types:String|String]] wordwrap( [[PTPScript:Types:String|String]] subject [, [[PTPScript:Types:Number|Number]] width [, [[PTPScript:Types:String|String]] break [, [[PTPScript:Types:Boolean|Boolean]] cut ] ] ] )'' \\ **Parameters** * [[PTPScript:Types:String|String]] ''subject'' - The String to wrap. * [[PTPScript:Types:Number|Number]] ''width'' - The width at which to wrap (defaults to ''75''). * [[PTPScript:Types:String|String]] ''break'' - The String to use at line ends (defaults to newline - ASCII code 10). * [[PTPScript:Types:Boolean|Boolean]] ''cut'' - Whether to split large words. * **''false''** (default) - Large words can make a line longer than ''width''. * **''true''** - A word larger than ''width'' can be broken up. \\ **Result** * [[PTPScript:Types:String|String]] - The wrapped String. Returns ''subject'' wrapped at the column number specified by ''width'', with each line terminated by ''break''.