Hello This may seem trivial but can you help? I'm reading a file line by line and transforming it in a list of lines (example:* list_of_lines = [file_line1, file_line2, ...]*) then I pass the list to a template to be displayed. (example: return render(request, *'template/location.html', {'lines':list_fo_lines})*)
In the template I have a for loop to white each line: *{% for line in lines %}* * {{ line }}<br>* *{% endfor %}* Now, the problem is that, in the file I wrote from, some words in a line have more than one space and sometimes tabs between them. I would like to keep them in the html page as well, but in the html page the additional spaces and tabs do not appearing. I know the answer may be in HTML but I'm not getting there. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c98d1e97-dc89-4fcf-b89e-3cd04629d333%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.