#20568: templatetag truncatewords_html split words on special caracters
---------------------------+--------------------------------------
     Reporter:  yann0@…    |                    Owner:  nobody
         Type:  Bug        |                   Status:  new
    Component:  Utilities  |                  Version:  1.3
     Severity:  Normal     |               Resolution:
     Keywords:             |             Triage Stage:  Unreviewed
    Has patch:  0          |      Needs documentation:  0
  Needs tests:  0          |  Patch needs improvement:  0
Easy pickings:  0          |                    UI/UX:  0
---------------------------+--------------------------------------
Changes (by jaap3):

 * status:  closed => new
 * resolution:  worksforme =>


Comment:

 I can reproduce it, but only if I convert the special characters to html
 entities first. Think that might be the actual cause:

 {{{
 >>> s = u'Depuis mars 2008, le programme RECYC-FRIGO d\u2019Hydro-
 Québec vous permet de vous débarrasser d\u2019un vieil
 appareil, réfrigérateur ou congélateur, facilement'
 >>> truncatewords_html(s, 8)
 u'Depuis mars 2008, le programme RECYC-FRIGO d\u2019Hydro-Qu ...'
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/20568#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/075.5d6e90ad6b0fcae75c1d7e3e37f66291%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to