Hello,

I have a model field which is defined as a TextField. If I get the
object in a view function by using of
next statement :
object = get_object_or_404(Object, pk=obj_id)
Then I can use in template the next statement :
{{ object.attrib }} and I get correctly the text get placed in this
varaibale.
But what I want is : to print this text in different lines
In Python if I applay the splitlines functions to this string
(objec.attrib.splitlines()), I will get a list of
lines. So I can print separately the lines.

My question is: How I can print a long text in different lines?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django 
users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to