{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.