Hi all,
I am having an issue, where a freelancer uploaded some files to our server, and we run Apache FTP and it adds CR and LFs to the line endings and we get double and tripled spaced files.
I checked Apache FTP (running on Windows 2003 Server) and there does not seem to be a transfer setting (unix vs. windows).
And I tried with our FTP app both binary and ASCII and it did not make a difference.
Long story short, I need to edit the files and remove the extra line breaks.
I tried 'code beautifier' in PHP edit and it does not address line breaks.
I also used a regular expression in dreamweaver [\r\n]{2,} changed to \n and it finds a lot and says it replaced them, but only for the first pass, then nothing.
I opened a file in Programmers Notepad and it shows:
// text CRLF
---CR <-- NOTE: the --- indicate what looks like line spaces between the CRLF and CR
CRLF
---CR
CRLF
// more text
So I tried [\r\n\r]{2,} and got nothing also.
I am hoping someone has solved this already.
Thanks in advance,
Don