I've got a snippet macro that truncates text - it's based off the 'summary' macro from the 'redwood' theme

In that one they're using ensure_right to add ellipses after the text is truncated.

Is there a way to do this, using an alternative to ``ensure_right```, because it adds the ellipses after every piece of content that uses the macro, whether or not the content actually needed truncating. I only want it for content that actually required truncating.

I know using a modifier works the way I want, but if possible I'd prefer to use a macro.

My macro code: _5050_snippet: strip_tags: img|ul|li|script safe_truncate: 122 ensure_right: ...

Answered by Jack McDade! Go to answer.