mitsuhiko/jinja2 — pull request #267 by berkerpeksag (2013-09-13 22:13:04+00:00)
Title: Issue #121: The truncate filter now counts the length

of the *end* parameter when truncating a string.

This is the same behavior as Django's truncate filter:

https://docs.djangoproject.com/en/1.4/ref/templates/builtins/#truncatechars