#5025: Add a "truncate" template filter
--------------------------------------+-------------------------------------
Reporter: SmileyChris | Owner: nobody
Status: reopened | Milestone:
Component: Template system | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by mtredinnick):
* stage: Design decision needed => Accepted
Comment:
Design decision (based on in-person discussion between some maintainers
and "some" mailing list dicussion): we will add such a filter. It will be
written like utils.text.truncatewords so that the truncate filter can be
replaced with a user's own, but with different ellipsis sequence. The
default ellipsis sequence will be marked as translatable. It must operate
on unicode strings, not treat them as bytes. In fact, it must use Python's
unicodedata library to evalute combining characters correctly w.r.t.
length.
--
Ticket URL: <http://code.djangoproject.com/ticket/5025#comment:18>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.