Page 1 of 1

Export to text file - display issues notepad

Posted: Thu Nov 18, 2010 8:43 pm
by tamalijs
I have a file in php and formated in the code to export to a .txt file - when I open it does not keep the formatting. If I save the file and open in wordpad it or notpad ++ it keeps the formatting and looks correct. I need notepad to be able to view it with its formating

any ideas?

Re: Export to text file - display issues notepad

Posted: Fri Nov 19, 2010 9:36 pm
by Doug G
You're going to have to save windows-style CRLF for line breaks rather than the default unix-style LF. Another option is to run the exported file through a post-processor that fixes the line breaks.