Export to text file - display issues notepad

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
tamalijs
Forum Newbie
Posts: 1
Joined: Thu Nov 18, 2010 8:27 pm

Export to text file - display issues notepad

Post 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?
Doug G
Forum Contributor
Posts: 282
Joined: Sun Sep 09, 2007 6:27 pm

Re: Export to text file - display issues notepad

Post 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.
Post Reply