>>>>> "Stuart" == Stuart Johnston <[EMAIL PROTECTED]> writes:

Stuart> The truncate function of the String plugin allows for a suffix that
Stuart> will be appended to the truncated string.  A patch was added 'to not
Stuart> append suffix if the string is already shorter than the required
Stuart> length'.  This is not explained in the docs.

Stuart> Since my problem requires adding the suffix regardless of length, I
Stuart> did not assume that it would functiion this way.  An update to the
Stuart> docs to mention this condition would be nice.

If you want to add a suffix, regardless of length, you can simply
use the "_" operator.  See the example there for a use of the suffix
inserted when truncation *has* happened.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to