#5025: Add a "truncate" template filter
---------------------------------------------+------------------------------
          Reporter:  SmileyChris             |         Owner:  nobody
            Status:  reopened                |     Milestone:        
         Component:  Template system         |       Version:  SVN   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  1     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by lukeplant):

 One problem with this filter is how to correctly handle unicode, where
 grapheme != code point.  Perhaps some library can do it, I don't think
 that Python bundles such a library.  I don't think this is as much of a
 problem with `truncatewords` because you rarely have a combining character
 preceding a space (is that ever valid?).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5025#comment:17>
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.

Reply via email to