#10931: truncate_html_words doen't handle multi-line tags properly --------------------------------+------------------------------------------- Reporter: gsong | Owner: nobody Status: new | Milestone: Component: Template system | Version: SVN Keywords: truncatewords_html | Stage: Unreviewed Has_patch: 1 | --------------------------------+------------------------------------------- If you have the following in your HTML, for example:
{{{ <a class="offsite" href= "http://blah.com/something/"> }}} `truncate_html_words` will include all the words in the tag, as well as not close the tag properly if it needs to. The attached patch simply adds the `re.S` flag for the two regular expressions used in the function. -- Ticket URL: <http://code.djangoproject.com/ticket/10931> 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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---