Hi I am using django and following the below method in views.py to return a output file,
response = HttpResponse(content=log_file)
response['Content-Type'] = 'application/txt:html'
return HttpResponse(response)
Now the issue is when I return the file in browser is displayed without /n (next line)
my actual file content is,
../xyz/value.txt
../abc/cls.txt
../opt/value.txt
../zz.txt
But it is display as,
../xyz/value.txt ../abc/cls.txt ../opt/value.txt ../zz.txt
when I open the same file with vim editor in linux machine it displays properly but here when I return from views and read it in browser it shows without /n
How can I fix this issue?
` sorry – Jean-François Fabre Nov 17 '17 at 14:55