> I've tried...
>
> {{product.title |  ljust 40}}
>
> and other formats but can't get it to work...
You can use the slice filter:

{{product.title |  slice:":40" }}

or if you what the to truncate only at workbrakes, you can use the
truncatewaords filter:

{{product.title |  truncate:"5" }}

Martin

--~--~---------~--~----~------------~-------~--~----~
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