Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Feature Request: Remove Trailing space on truncation #27

Open
donaldwasserman opened this issue Mar 8, 2019 · 0 comments
Open

Feature Request: Remove Trailing space on truncation #27

donaldwasserman opened this issue Mar 8, 2019 · 0 comments

Comments

@donaldwasserman
Copy link

donaldwasserman commented Mar 8, 2019

Hello -

I've come across a needed feature (at least for me) is that when truncating text that falls on a space, I'd like to able to pass in a flag that strips the trailing space before appending the ellipsis,

{{truncate "my string here" 3 true true}}

or via options object

{{truncate "my string here" 3 true trim=true}}

I'd be happy to implement it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant