Module ftext
fText processing
Functions
wordWrap (str, limit) | Performs wordwrapping on a string, given a length limit. |
xwrap (text, limit, type) | Performs wordwrapping on a string, while ignoring color tags of a given type. |
fText (str, opts) | The main course, this function returns a formatted string, based on a table of options |
Functions
- wordWrap (str, limit)
-
Performs wordwrapping on a string, given a length limit. Does not understand colour tags and will count them as characters in the string
Parameters:
- str string the string to wordwrap
- limit number the line length to wrap at
- xwrap (text, limit, type)
-
Performs wordwrapping on a string, while ignoring color tags of a given type.
Parameters:
- fText (str, opts)
-
The main course, this function returns a formatted string, based on a table of options
Parameters: