{textformat}{textformat} is a
block function
used to format text. It basically cleans up spaces and special characters,
and formats paragraphs by wrapping at a boundary and indenting lines.
You can set the parameters explicitly, or use a preset style.
Currently email is the only available style.
Attribute NameTypeRequiredDefaultDescriptionstylestringNon/apreset styleindentnumberNo0the number of chars to indent every lineindent_firstnumberNo0the number of chars to indent the first lineindent_charstringNo(single space)the character (or string of chars) to indent withwrapnumberNo80how many characters to wrap each line towrap_charstringNo\nthe character (or string of chars) to break each
line withwrap_cutbooleanNo&false;if &true;, wrap will break the line at the exact
character instead of at a word boundaryassignstringNon/athe template variable the output will be assigned
to{textformat}
The above example will output:
The above example will output:
The above example will output:
The above example will output:
See also
{strip}
and
wordwrap.