#47242 [Opn->Csd]: No newlines when c'n'p-ing examples from IE/CHM with the new Geshi highlighter.
| From: | vrana@php.net | Date: | Fri, 20 Nov 2009 10:57:19 +0000 |
| Subject: | #47242 [Opn->Csd]: No newlines when c'n'p-ing examples from IE/CHM with the new Geshi highlighter. | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3270@lists.php.net to get a copy of this message | ||
ID: 47242
Updated by: vrana@php.net
Reported By: RQuadling at GMail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: *
PHP Version: Irrelevant
Assigned To: cweiske
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2009-11-20 10:56:55] svn@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=291060
Log: Copy newlines (bug #47242)
------------------------------------------------------------------------
[2009-01-29 18:14:29] RQuadling at GMail dot com
Description:
------------
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 ...
$geshi->set_header_type(GESHI_HEADER_DIV);
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"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo "Hi, I'm a PHP script!";
?>
</body>
</html>
Actual result:
--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<title>Example</title> </head> <body> <?php
echo "Hi, I'm a PHP script!"; ?> </body></html>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=47242&edit=1