Hi,

I am quite new to Django; been working on an app using Django for 3-4
days.

I have a need to show large piece of text as is. I had issues with
linebreaks, which I solved using
{{ text|linebreaks }}

Now, the problem is with whitespaces. I have to display them as is.

One of the solutions is to surround {{text}} with <pre> tag.
Is there any other way (a filter or something) that can achieve the
same?

Thanks
-Hari


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