#9157: Ellipses should be optional, and faux ellipses should be true ellipses in
truncatewords filter.
------------------------------------+---------------------------------------
Reporter: aral | Owner: nobody
Status: closed | Milestone: post-1.0
Component: Uncategorized | Version: 1.0
Resolution: wontfix | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by mtredinnick):
* status: new => closed
* resolution: => wontfix
Comment:
As always, we have the problem that putting multiple problems into one
ticket makes it difficult to address any of them well (in future, please
make patches attachments so that we can read the problem statement more
easily).
In any case, the issue of multiple arguments in template filters is in
another ticket and we'll probably address that one day. The proposition of
changing the output of current truncatewords isn't really going to work.
Right now, the output works no matter what encoding is used for templates
(and the output encoding need not be UTF-8). For example, ISO-8859-1 does
not have an ellipses character in the character set. But it does have a
period. So our current mode is highly portable. The proposed change isn't.
You can easily enough write your own filter for your own purposes here, so
this isn't really a showstopper. When/if we address the issue of multiple
arguments for filters, hopefully that will also support optional
arguments, so this type of problem can be handled fairly easily then and
can be opened as a ticket with patch to add an optional argument to
truncatewords. But the particular issue here is a wontfix case, I'm sorry.
--
Ticket URL: <http://code.djangoproject.com/ticket/9157#comment:2>
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
-~----------~----~----~----~------~----~------~--~---