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

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


Thanks, Stuart Johnston


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

Reply via email to