|
Posted by J.O. Aho on 11/11/06 12:09
sTony wrote:
> Ok, so I've got my "live edit" working, but it's not quite perfect. I can
> edit the different pages of my website from within my website, but when I
> then view the source of a page in my regular text editor, everything is
> double spaced. I think this might be related to \n\r. I'm on a windows 98
> box and I'm using fwrite to update my file. Any ideas as to why this
> spacing is happening, and what can I do to fix it.
As you haven't shared your code, it's not easy to say why, but yes \n\r does
result in double line feeds in most system, except those that microsoft
created in the beginning like ms-notepad, all others uses only a single \n for
a new line (and do the move back the cursor back to the beginning of the line).
//Aho
Navigation:
[Reply to this message]
|