Topic awaiting preservation: \n (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 04-21-2002 06:05
Don't you love my descriptive title? Anyways... I've never had this problem before, but writing \n to a file is really not working, see the code below: |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-21-2002 06:25
Your title made me smile. =) |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-21-2002 07:03
Maninacan, the newline *characters* are stored in the file, but some editors (I guess that you tried to open that file in Notepad) won't show line endings correctly when they use Unix line endings - only "\n" (on Windows you have to use "\r\n" instead). Don't worry about this, line ending are there and you can see them if you open that file in a modern HTML/text editor... |
Paranoid (IV) Inmate From: Seattle, WA, USA |
posted 04-21-2002 07:43
Well, I don't think either of you are right. First off, Slime, the Server and the Client are both running the same OS, in fact they are the same machine, so I doubt that's the problem. And secondly Max, I opened it in Editplus which is a modern text/html editor, and it still didn't show them as newlines, and I know there's a way to do it without doing \r\n because I've done it before. Hmmm... What to do, What to do. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-21-2002 10:01
Try to open it in my HTML editor ( http://www.maxworld.co.yu/htmlbeauty/ )... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 04-22-2002 06:19
Perl and PHP look similar =) |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 04-22-2002 06:35
What OS are you running on? |