Jump to content

"all" Uploaded Files Remove New Lines?


apothem

Recommended Posts

FTP server will always convert new lines for you to the standard used in the system on the server if you send the file in txt mode. So in example if on Windows you use - as xaav wrote - CR+LF, then it will be converted to the LF on Unix system. And when you download it back again it is not converted back by your FTP client so you can notice that file has been change.

 

If you really want to you can avoid it and send all the files in binary mode (you can set it in FileZilla), so nothing will be converted, file will be sent as is. However as this makes no difference in example in PHP or pure HTML or even in .htaccess files, but for such language as Python it may be a problem if you'll use different new line characters (I'm not sure, though). So as xaav already wrote - you may want to use LF for new lines ("Unix format" in Notepad++ options).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...