PDA

View Full Version : ftp client adding white space


mcdougals4all
08-26-2004, 06:53 PM
When using ftp to download files, I will occasionally open the downloaded file in a text editor to find an extra blank line added between every line of code. It seems to be random as far as I can tell.

So this:

<html>
<body>
Some stuff.
</body>
</html>


Sometimes becomes this:


<html>

<body>

Some stuff.

</body>

</html>


I've had this happen with Core FTP Lite and CoffeeCup Direct. Anyone know why, or had anything similar happen with another FTP client. Any info is appreciated.

Unit
08-26-2004, 07:15 PM
You need to give more details about the scenario. Are you on a Unix/Linux family of machines? what kind of FTP server is it and what is it running?

This sort of thing usually happens when you open a text file, in this case a html file, on a different OS than the one its originally written on. This is because the line break is defined as different things on different operating systems. The easy way to see this in action is to make a file in notepad and open it on linux. you will see that there is a blank line after every line.

mcdougals4all
08-26-2004, 08:27 PM
I didn't know that, but it makes sense with my situation. I'm collaborating on a project, downloading files someone else has uploaded. Thanks.