Hi Sia. I don't believe you need a filter. Just import textwrap module 
and do what you want. See textwrap module on python.org in the docs for 
more.

Regards,
David

Siah wrote:
> Hi,
> 
> I noticed there is no filter to truncate a string to a given number of
> characters as apposed to just words. It can be useful. For instance I
> am trying to show contact list that includes email addresses, and given
> that some people have bizarrely long emails, I'd like to limit it to
> some value.
> 
> Please let me know if this feature is available, or else I'll find out
> how to implement it as a filter myself. 
> 
> Thanks,
> Sia
> 
> 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to