1950 posts Do the Needful
    Has referred 10+ members Has sold $125,000+ on Envato Market Has collected 10+ items on Envato Market Has been part of the Envato Community for over 4 years
+10 more
JamiGibbs says

It seems to happen randomly when I upload a file via FTP (Filezilla) and then transfer it back again to my computer later, it adds line breaks after every line of code. Drives me nuts looking at the code this way.

I thought perhaps it was because of a change in computer environments or opening the file in a different program than it was originally created but I haven’t changed anything this time around. The file was created with Notepad++ and reopened with Notepad++ yet the FTP still adds stinking line breaks after each line of code.

Anyone have any idea why it’s doing that and, more importantly, how I can fix it?

1950 posts Do the Needful
    Has referred 10+ members Has sold $125,000+ on Envato Market Has collected 10+ items on Envato Market Has been part of the Envato Community for over 4 years
+10 more
JamiGibbs says

I just tried changing the transfer type from Auto to ASCII and Binary. The Binary transfer type worked (ASCII still transferred the files with line breaks).

238 posts
    Has been part of the Envato Community for over 4 years Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
ewizz says

Windows use a CR/LF for the end of a line and Linux uses just a LF. The extra lines are added when you upload a text file from a Windows computer to a Linux computer(server probably) in binary mode, and download it back to the Windows computer in ASCII mode.

1950 posts Do the Needful
    Has referred 10+ members Has sold $125,000+ on Envato Market Has collected 10+ items on Envato Market Has been part of the Envato Community for over 4 years
+10 more
JamiGibbs says

Right on. Thanks for the head’s up on that, ewizz.

238 posts
    Has been part of the Envato Community for over 4 years Has collected 1+ items on Envato Market Sells items exclusively on Envato Market
ewizz says

np, if you use windows then download filezilla, it will automatically detect file type and transfer it correctly :)

by
by
by
by
by
by