GetSimple Support Forum
SOLVED Where do all the empty lines come from? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16)
+--- Thread: SOLVED Where do all the empty lines come from? (/showthread.php?tid=10594)



Where do all the empty lines come from? - Hypertexter - 2018-09-20

Hi,

please look at this funny screenshot from my WAMP installation. The header.inc.php file that's shown comes from the web installation, where it has no empty lines between the code lines, just downloaded to the local installation and opened in the Getsimple Template Editor. And suddenly, every second line is empty.

[attachment=832]

Does anybody know the reason?

Hypertexter


RE: Where do all the empty lines come from? - Alexander_ - 2018-09-21

(2018-09-20, 03:37:37)Hypertexter Wrote: Hi,

please look at this funny screenshot from my WAMP installation. The header.inc.php file that's shown comes from the web installation, where it has no empty lines between the code lines, just downloaded to the local installation and opened in the Getsimple Template Editor. And suddenly, every second line is empty.



Does anybody know the reason?

Hypertexter

Maybe the spaces are caused by your FTP-Program.

Alex


RE: Where do all the empty lines come from? - Hypertexter - 2018-09-21

@Alexander_

You are so completely right!

It was the ASCII transfer mode of Filezilla, that made funny things with the files. PHP looks like text files, but is not just text files.

I switched to binary mode and I got rid of these empty lines - and of those annoying little differences in file size locally and on the server...

Thank you!

Hypertexter