Line spacing problems & more

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
AlanT
Posts: 7
Joined: Wed Apr 12, 2006 1:12 am

Line spacing problems & more

Post by AlanT »

Hello,

I didn't realize there was a forum for this great software until today.

I'm using WeBuilder 2006, which I just upgraded this week.

I'm running into a problem, and I suspect that it's a setting I can't find. I have a set of PHP files that I'm customizing (the CubeCart shopping cart) and when I open the files there are blank lines inserted throughout the file, as in:

Orig. Line 1
blank line
Orig Line 2
blank line
Orig Line 3
blank line

When I open the same files in my other text editor (NoteTabPro), they open fine, with no extra blank lines. This also doesn't happen with other files that I open with WeBuider, so I suspect that it's something about the files themselves that NoteTab is handling automatically but WeBuilder isn't.

I found that I could 'fix' the problem by doing a search for 2 line breaks and replacing them with a single one, but then I ran into another problem. It works fine on a single file that's open, but won't work on a directory of files on the hard drive.

I've tried doing the file search and replace on a small directory of 4 files and nothing changes. I tried doing this on everything (998 files) and I get an "out of memory" error, which really confused me.

Can someone help me?

I'm running a WinXP Home system, in case that matters.

Thanks.
- Alan Tutt

We all have the Power.
All we need are the Keys.
http://www.PowerKeysPub.com
rgidney
Posts: 1
Joined: Wed Apr 12, 2006 3:15 am
Location: San Antonio Texas USA

Post by rgidney »

I suspect this has to do with your FTP client. I have seen this before when you download form a *nix box using ascii. Most window editors show the file in Windows line returns or adapt to the single line feed of *nix boxes. I have found that Webuilder displays the file as if it were still on *nix and therefore you get a blank line inserted.

Bruce
AlanT
Posts: 7
Joined: Wed Apr 12, 2006 1:12 am

Post by AlanT »

Is there any way to change this behavior?

As I mentioned, the same file opens fine in another text editor, and other files (from difference sources/developers) also open fine in WeBuilder.
- Alan Tutt

We all have the Power.
All we need are the Keys.
http://www.PowerKeysPub.com
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I kinow this problem. It has happened to me before. Here is what was going on in my case:

1) I uploaded files to FTP with some FTP client that did upload in binary mode (not the ASCII as it should have done with text files).

Why? Because that FTP client did not know (I forgot to configure) that PHP files are text files.

So, we end up with text files that are uploaded to FTP a bit incorrectly.

2) Then I attempted to open/download these files from FTP in correct ASCII text mode and voila, the files had those blank lines.

To avoid this problem make sure that you both upload and download files from FTP in ASCII text mode. For those files that were uploaded in binary mode, you may try also to download them in binary mode in order to avoid blank lines, but next time when you upload, use text mode.
Karlis Blumentals
Blumentals Software
www.blumentals.net
AlanT
Posts: 7
Joined: Wed Apr 12, 2006 1:12 am

Post by AlanT »

Hi Karis,

Thanks for the reply. I had found that the problem originated because I had uploaded the ZIP file and had the server decompress it to save time. This may have created the same situation you describe with the binary upload.

I had suspected that since my other text editor was able to automatically fix the problem that WeBuilder would also have that ability. From your reply I can see that it does not have that feature.

Can you explain why I got the "out of memory" error when trying the Search & Replace function on the disk files?

All 1000 files should have been able to fit into memory if that is what it was doing. I have 512MB in my system, and the files are only 6MB total.
- Alan Tutt

We all have the Power.
All we need are the Keys.
http://www.PowerKeysPub.com
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

I do not receive any errors even though my files are 15Mb and there are 1000s of them.

Could it be that your search had to return hundreds of entries? If you could send us the pack of files (we will keep them confidential and delete after use) and describe what to search for in order to reproduce the problem, that would be *extremely* helpful. Anything like that (I mean over 2Mb) can be sent to my private address, karlis[at]blumentals.net
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply