Unwanted blank lines when committing from SVN

Posted by Alon_A on Server Fault See other posts from Server Fault or by Alon_A
Published on 2012-06-10T09:16:44Z Indexed on 2012/06/10 10:41 UTC
Read the original article Hit count: 164

Filed under:
|
|

I'm using CentOS Linux 5.8 as a web server and tortoise SVN for synchronizing version of our code. We write the code in Windows 7 professional 64BIT with NetBeans and NotePad++.

I'm committing the code files (.php) from the Linux Shell by this command:

svn co svnFolder serverFolder --username **** --password ****

The problem is, after committing the files, when I'm opening them directly from the server (for debugging) by NotePad++ (I'm doing View/Edit from Filezilla) I have extra blank lines.

A code that looks like this on the localhost (On NotePad++):

private $producer;
private $account;
private $admin;

private $producerEvents;
private $accountProducers;
private $adminAccounts;

Will look like this after committing to the server (Again, on NotePad++):

private $producer;

private $account;

private $admin;



private $producerEvents;

private $accountProducers;

private $adminAccounts;

If I upload files by FTP, No blank lines are being added.

How can I solve it ? Thanks.

© Server Fault or respective owner

Related posts about linux

Related posts about centos