The truncatewords filter inserts a space before the elipsis. As in,
‘A fine holiday recipe book of …’
vs. the desired
‘A fine holiday recipe book of…’
Is there an easy way to get this filter to not put a space there? I could take care of this in the view pretty easily, but would prefer to do it in the template – ideally without creating a custom filter. Any suggestions are welcome.
There are a bunch of template filters at Djangosnippets, and this one looks pretty neat: