The Truncate plugin always shows the ellipsis when the checkbox is checked. It doesn't need an ellipsis if the field is too short to be truncated.


jlstrecker’s picture

Status:Active» Needs review
new1.23 KB

Patch is attached.

smokris’s picture

Also, Drupal core has truncate_utf8(), which this plugin could use, instead of duplicating this functionality. Updated patch attached.

twistor’s picture

Status:Needs review» Patch (to be ported)

Nice. We should probably add config settings for the rest of the settings for truncate_utf8() but that's a separate issue.

algazaras’s picture

Hi twistor,

I am getting into this problem with Feeds Tamper 7.x-1.0-beta4 . I have seen in the notes that it must be ported. So, did you get it to work? Is it posible to use the 6.x patch?

Thanks a lot

twistor’s picture

Version:6.x-1.x-dev» 7.x-1.x-dev
Component:Code» Plugins
Issue summary:View changes
Status:Patch (to be ported)» Closed (fixed)

This was committed to 6.x a long time ago.