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?
Export to text file - display issues notepad
Moderator: General Moderators
Re: Export to text file - display issues notepad
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.