[TYPO3-core] RFC #9879: enable charlist for trim function in stdWrap
Steffen Kamper
info at sk-typo3.de
Wed Dec 3 09:26:21 CET 2008
Hi Georg,
Georg Ringer schrieb:
> This is a SVN patch request.
>
> Type: Feature
> Bugtracker Reference: http://bugs.typo3.org/view.php?id=9879
>
> Branch: trunk
>
> Problem:
> The trim function of stdwrap is limited to whitespaces but it would be
> very nice to be able to trim any other char too, e.g. a , or whatsoever
>
> Solution:
> Set a new option charList to define the chars which should get trimmed too.
>
> Notes:
> - IMO this is a no-brainer
> - Don't know if the wording is ok for you, so I will add the changes for
> the pending doku changes after some answers
first, new feature is never a no-brainer ;-)
trim without charList trims other chars too, see php-doc. With charList
you have to use all of them because then only whitespace is trimmed by
default. Defining tab, linebreak etc. from TS will be difficult.
What is your intention, can you give a real life example?
vg Steffen
More information about the TYPO3-team-core
mailing list