PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Text » Text_Highlighter » Bug #2588

Missing nbsp in first line

Details

Submitted2004-10-22 14:01 UTC
Fromjoern_h at gmx dot net
Assignedblindman
StatusClosed
PackageText_Highlighter
PHP Version4.3.8
OSWin 2000
Roadmaps(Not assigned)

Comments

[2004-10-22 14:01 UTC] joern_h at gmx dot net

Description:
------------
When highlighting with linenumbers enabled every line except the first one has a nbsp prepended.

Fix: in line 186 of Text_Highlighter_Renderer_Html (Version 0.5.0) change

$this->_output = '<li>' . str_replace("\n",
"</li>\n<li> ", $this->_output) . '</li>';

to

$this->_output = '<li> ' . str_replace("\n",
"</li>\n<li> ", $this->_output) . '</li>';