Truncatewords adding … when not truncating
It seems that the ellipsis (…) is being added even if a phrase is not trunacted.
Take a look at http://luciddesign.co.nz/packaging/. The title tag shouldn't need an ellipsis as there are only nine words in the first place (and I'm using truncatewords: 9).
Comments are currently closed for this discussion. You can start a new one.
2 Posted by John Nunemaker on 09 Feb, 2011 01:13 AM
K. I will look into this soon. On a plane now. ;)
3 Posted by Galen King on 09 Feb, 2011 01:14 AM
Heh heh. Show off! :-)
4 Posted by John Nunemaker on 04 Mar, 2011 04:45 PM
Looking into this right now.
5 Posted by John Nunemaker on 04 Mar, 2011 05:02 PM
Fixed. truncatewords in Liquid standard filters didn't work quite like one would expect. If you pass it a word that is 9 long and set the max to 9, it actually truncated when it didn't need to.
I just overrode that method with our own for harmony that works correctly. Checked your site and you are good to go.
Jonathan Hoyt closed this discussion on 07 Oct, 2011 12:49 AM.