#12200 closed (duplicate)
Template filter for truncating text (characters)
Reported by: | Paul Schreiber | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 1.1 |
Severity: | Keywords: | text string truncate characters | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There's a template tag for truncating text based on word count (truncatewords), but not on character count. I wrote truncate() (truncate_head(), truncate_middle(), truncate_tail()) to do this.
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | truncate.py added |
---|
comment:1 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #5025.