textformat function
Form attributes:
This function mainly cleans spaces and special characters, and formats paragraphs such as line breaks and line indentation according to word boundaries.
Users can set each parameter explicitly, or use a preprocessing style. Currently the only available style is "email".
eg:
{textformat wrap=40}
This is foo .
This is foo.
This is foo.
This is foo.
This is foo.
This is foo.
This is bar.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
bar foo bar foo foo.
{/textformat}
Output:
This is foo. This is foo. This is foo.
This is foo. This is foo. This is foo.
This is bar.
bar foo bar foo foo. bar foo bar foo
foo. bar foo bar foo foo. bar foo bar
foo foo. bar foo bar foo foo. bar foo
bar foo foo. bar foo bar foo foo.