PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

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>';