Skip to content

Feature Request: Remove Trailing space on truncation #27

Description

@donaldwasserman

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions