fabpot/Twig-extensions — pull request #122 by gnugat (2014-10-07 13:32:52+00:00)
Title: Fixed truncate filter from text extension

When truncating, we want the text to be shorter than the given limit.
Previously, when asking to preserve words, the truncate filter would return text larger.

Example:

* input:` 'No one expects the spanish inquisition'|truncate(21, true, '…')`
* output: `'No one expects the spanish…'`
* expected: `'No one expects the…'`