Search code examples
phpapachesvnweb-hostingblank-line

Apache Server adding blank lines, possible?


After some time I downloaded a copy of a website via FTP. I made a comparison with SVN and I find out that each file was modified in this way:

BEFORE

<div class="class">
    <p>TEXT</p>
</div>

AFTER

<div class="class">

    <p>TEXT</p>

</div>

Is there some option that could cause this behaviour??

Thank you


Solution

  • I found out where the problem is.

    I didn't upload the files via FTP. I used cPanel.

    cPanel 66.0 (build 17)
    

    EDIT

    To by pass this problem

    Simply ZIP all files from cPanel and download the ZIP. The problem will be solved.

    Hope this is useful

    RE-EDIT

    To solve the problem

    In FileZilla => Transfer > Transfer Type

    I had "ASCII" selected: by setting "Binary" the problem is solved.