|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #47242 No newlines when c'n'p-ing examples from IE/CHM with the new Geshi highlighter.
Submitted: 2009-01-29 18:14 UTC Modified: 2009-11-20 11:35 UTC
From: RQuadling at GMail dot com Assigned: cweiske (profile)
Status: Closed Package: Doc Build problem
PHP Version: Irrelevant OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: RQuadling at GMail dot com
New email:
PHP Version: OS:


 [2009-01-29 18:14 UTC] RQuadling at GMail dot com
Ok, so this is going to be WAY down at the bottom of someone's list, 
if at all.

But, here goes ...

Using phd with the new --highlighter option to use GeSHi with the 
html, php and chm themes.

If you cut and paste an example from the rendered output to your 
editor, it has lost its line breaks.

This is only visible when using Internet Explorer or the windows CHM 
viewer (which is essentially a contained IE).

Using Chrome with the html and php output is fine.

Using the normal highlighter is also fine in IE/Chrome/CHM with 
html/php/chm themes.

Adding this line ...


to the highlight() function in the new PhD_Highlighter_Geshi.php 
class solves this.

Expected result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

            echo "Hi, I'm a PHP script!";


Actual result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"    
""><html>    <head>        
<title>Example</title>    </head>    <body>         <?php            
echo "Hi, I'm a PHP script!";        ?>     </body></html>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-20 10:56 UTC]
Automatic comment from SVN on behalf of vrana
Log: Copy newlines (bug #47242)
 [2009-11-20 10:57 UTC]
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 07:05:46 2022 UTC