Rapid PHP Displays Double Line Spacing of Windows Text Files

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
DaveMorton
Posts: 28
Joined: Thu Apr 11, 2013 9:25 pm

Rapid PHP Displays Double Line Spacing of Windows Text Files

Post by DaveMorton »

I'm a long time user of WeBuilder (2008), and I recently "upgraded" to Rapid PHP 2014, and so far, I love it. The interface is a familiar place to me, and I like the extra features, but I'm seeing one thing that causes me a bit of concern, and I wonder if there's something I can do to correct it. Please compare the two text snippets, below:

Code: Select all

11-04-2013 12:16:31.83280900[0][4] - Elapsed: 1.384 milliseconds
[conversation_start.php][Called outside of function][21]
Conversation Starting 
-----------------------
11-04-2013 12:16:31.83662200[4][4] - Elapsed: 3.814 milliseconds
[load_aimlfunctions.php][Called outside of function][15]
AIML function include files loaded 
-----------------------

Code: Select all

11-04-2013 12:16:31.83280900[0][4] - Elapsed: 1.384 milliseconds

[conversation_start.php][Called outside of function][21]

Conversation Starting 

-----------------------

11-04-2013 12:16:31.83662200[4][4] - Elapsed: 3.814 milliseconds

[load_aimlfunctions.php][Called outside of function][15]

AIML function include files loaded 

-----------------------
Both snippets are an excerpt from a debugging file that was created by a script that I've written. The first snippet is how the file looks in Windows Notepad, AND how it's intended to look. The second snippet is how it looks in Rapid PHP, and has (of course) some extra, unintended newlines (or carriage returns, depending on your point of view), and isn't exactly desirable. The script that writes the debug file uses the PHP constant PHP_EOL to append either \r\n or just \n to the end of each entry, based on the host OS, and I'm currently testing the script on a Win32 system (Windows 8, to be specific).
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Rapid PHP Displays Double Line Spacing of Windows Text F

Post by Aivars »

Could you zip the file and send to us for reviewing what causes this? Either upload the file and send me the link or use the support contact form http://www.rapidphpeditor.com/support-contact.php
Blumentals Software Programmer
DaveMorton
Posts: 28
Joined: Thu Apr 11, 2013 9:25 pm

Re: Rapid PHP Displays Double Line Spacing of Windows Text F

Post by DaveMorton »

The attached file exhibits the same problem:

http://www.geekcavecreations.com/tmp/ScriptDebugger.zip
User avatar
Aivars
Blumentals Software Developer
Posts: 2462
Joined: Thu Aug 22, 2002 1:40 pm
Location: Latvia

Re: Rapid PHP Displays Double Line Spacing of Windows Text F

Post by Aivars »

The earlier WeBuilder opened the files incorrectly and there should in fact be 2 newlines. See this image:

Image

As you can see, the text lines are separated by Mac newline (\r = 0x0D) followed by Windows newline (\r\n = 0x0D 0x0A).

You can get some info about various ways the newlines can be represented here: http://www.codinghorror.com/blog/2010/0 ... chism.html
Blumentals Software Programmer
DaveMorton
Posts: 28
Joined: Thu Apr 11, 2013 9:25 pm

Re: Rapid PHP Displays Double Line Spacing of Windows Text F

Post by DaveMorton »

Aha! Thanks! I'll consider it a bug in my script, and correct the issue. :)

Thank you for the fast response. I appreciate it.
Post Reply