Forum Moderators: coopster
i've done this:
echo "some text \n" ;
echo "some text \n" ;
echo "some text \n" ;
which i thought would be written as seperate lines, however that is not the case, is this because i'm testing on a windows box or am i missing the point?
Check this link: [webmasterworld.com...]
good call Psychopsia, although i was actually trying to write the source code on seperate/new lines, i'm dynamically writing some javascript and i want it on seperate lines of code ... am not trying to format line breaks as seen by a browser.
By the way, does it still not work when you omit the linefeed (\n) and just keep the carriage return (\r), or do you need both to work on your machine? It's just that I find this odd and would like to know all the details, if you don't mind ;)