WeBuilder Remove Newlines

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
danfix
Posts: 2
Joined: Tue Feb 10, 2015 12:45 pm

WeBuilder Remove Newlines

Post by danfix »

Hi

I wanted to find out is there a way to remove all newlines/extra spaces.

My whole script files .php, .xml etc, have some how got newlines below each code line.
example
$config['blacklisted_ips'] = array();



$config['whitelisted_ips'] = array('111','222','333');



$config['blacklisted_countries'] = array();

There are too many files to remove them manually.

Could this have happened by uploading the files in the wrong way?

Thanks
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: WeBuilder Remove Newlines

Post by Aivars »

Some misconfigured FTP servers do this. Try removing "PHP" from "FTP Options" -> "Transfer Mode" list if you have it there, or adding, if you don't.
Blumentals Software Programmer
danfix
Posts: 2
Joined: Tue Feb 10, 2015 12:45 pm

Re: WeBuilder Remove Newlines

Post by danfix »

Where would i find this on the server.

In filezilla Edit - Settings - Transfers - File Types - Automatic file type classification - Treat the following as ASCII.
I removed php from that list.

Think it could be my pc. I open some files last night they were all formatted ok, today i opened the same php files and they now have empty lines between each line of code.

Its a pain to grow through each file removing all the empty line.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: WeBuilder Remove Newlines

Post by Aivars »

In WeBuilder FTP settings can be found in FTP pane (menu View -> File Explorer -> FTP), look for the button in the toolbar.
Blumentals Software Programmer
Post Reply