Getting Extra Line Feeds ...

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
ajmaske
Posts: 38
Joined: Fri Jun 01, 2007 4:15 am
Location: Modesto, CA
Contact:

Getting Extra Line Feeds ...

Post by ajmaske »

Using WeBuilder 2014 Version 12.0 (12.0.0.147)

When I open existing scripts off the server I'm getting extra line feeds that didn't previously exists. When I save the script they are being saved with the modifications, so when the script is re-opened in another editor the extra line feeds are there when they previously were not.


Image
Anthony
User avatar
Nikolajs
Blumentals Software Developer
Posts: 108
Joined: Mon Sep 19, 2011 8:28 am

Re: Getting Extra Line Feeds ...

Post by Nikolajs »

This problem can arise if the files have either been uploaded using the wrong transfer mode or it could be because the wrong transfer mode is used to download them. If you have upload your files using an FTP client in Binary transfer mode and then try to download these files via the built-in FTP features of your code editor which use the correct ASCII mode, you may get empty lines.

Try changing the transfer mode for PHP files.
Nikolay Dutchuk
Blumentals Software
ajmaske
Posts: 38
Joined: Fri Jun 01, 2007 4:15 am
Location: Modesto, CA
Contact:

Re: Getting Extra Line Feeds ...

Post by ajmaske »

the scripts were previously edited with Eclipse. With WeBuilder 11 I didn't have this issue, I switched between editors frequently without any issues. Now that I'm using WeBuilder 12 more frequently I'm seeing this.
Anthony
ajmaske
Posts: 38
Joined: Fri Jun 01, 2007 4:15 am
Location: Modesto, CA
Contact:

Re: Getting Extra Line Feeds ...

Post by ajmaske »

I just re-opened the same script in the image in Webuilder 12 but this time using WinSCP instead of WeBuilders 12 SFTP pane and the script opened fine without the extra line feeds.

If I re-open the same script using the FileExplorer SFTP I get the extra lines.
Anthony
Andrei
Posts: 8
Joined: Thu Jul 14, 2011 6:00 pm

Re: Getting Extra Line Feeds ...

Post by Andrei »

Any news on this? I'm having the same problem and it's quite annoying (using the latest version of WeBuilder).
For example it adds two line breaks after php close tag and generate header warnings. This problem has appeared recently, in the first versions of WeBuilder 2014 everything was okay.
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Getting Extra Line Feeds ...

Post by Aivars »

We tried to reproduce this problem but in every case the file was opened correctly. Could you put the file that WeBuilder opens incorrectly on some FTP account that doesn't contain any sensitive data and PM me the FTP data for testing? Thanks.
Blumentals Software Programmer
ajmaske
Posts: 38
Joined: Fri Jun 01, 2007 4:15 am
Location: Modesto, CA
Contact:

Re: Getting Extra Line Feeds ...

Post by ajmaske »

Aivars wrote:We tried to reproduce this problem but in every case the file was opened correctly. Could you put the file that WeBuilder opens incorrectly on some FTP account that doesn't contain any sensitive data and PM me the FTP data for testing? Thanks.
Hey Aivars ... finally sent via pm ...

in preparing I was able to find a way to reproduce every single time ...
  • if you have Eclipse w/ Remote System; connect to a server and create a new .php script
  • copy/paste any script contents to the new script created and save it
  • close down Eclipse
  • open up WeBuilder and using SFTP connect to the server and open the same script you created with Eclipse; you should have double lines extra line feeds)
every time I do this I will get the extra line feeds. If I turn around and open that exact same script again but using WinSCP/WeBulder, it will open fine. If I then save it and turn around and re-open it using WeBuilder SFTP it will now open fine with no extra line feeds.

here is a screen snip showing the above, that is, the exact same file is opened in WeBuilder twice. One editor window using WinSCP and the other editor window using SFTP file explorer ...
http://themaskes-dev.net/images/webuilder_capture.png


forgot to point out ... if one is not careful and they open a script using WeBulder SFTP and end up with the extra line feeds and then save it. Those extra line feeds will now be there regardless of the editor opening them.
Anthony
kristaps
Posts: 1
Joined: Mon Apr 15, 2013 9:54 am

Re: Getting Extra Line Feeds ...

Post by kristaps »

I was also getting an extra line feed when using SSH, but I managed to get pass this issue by removing "PHP" from "FTP Options" => "Transfer Mode" list. Hope this will help.

Using 12.0(12.0.0.148)
ajmaske
Posts: 38
Joined: Fri Jun 01, 2007 4:15 am
Location: Modesto, CA
Contact:

Re: Getting Extra Line Feeds ...

Post by ajmaske »

Thanks kristaps ... ! removing "PHP" from the "FTP Options" => "Transfer Mode" list does in fact remove the extra line feeds.

I kept going back and forth, adding/removing PHP from this list, opening a script each time and with "PHP" in this list I would get extra line feeds and removing "PHP" from this list the extra line feeds would go a way ...

Thanks again ...
Anthony
Andrei
Posts: 8
Joined: Thu Jul 14, 2011 6:00 pm

Re: Getting Extra Line Feeds ...

Post by Andrei »

Thank you kristaps, your solution seems to work fine. I've also removed the html/css/js and everything is good now. Hopefully Blumentals guys will fix this soon though as it's been a while.
User avatar
EvilBMP
Posts: 120
Joined: Thu Jan 04, 2007 1:57 am
Location: Germany

Re: Getting Extra Line Feeds ...

Post by EvilBMP »

Thanks for the tip - I just thought - oh noo, it's back again, because this problem was already existent in older versions of WeBuilder (I think v9 - don't know anymore) and was fixed after some time. Now in v12 it seems to be back, which is really odd because other editors like netbeans or even editors at the shell like nano or vi show the files correctly. Only WeBuilder seems to break the newlines again.

Again thanks for the workaround :idea:
Post Reply