Home » Text » Text_Highlighter » Bug #2588
Missing nbsp in first line
Details
| Submitted | 2004-10-22 14:01 UTC |
|---|---|
| From | joern_h at gmx dot net |
| Assigned | blindman |
| Status | Closed |
| Package | Text_Highlighter |
| PHP Version | 4.3.8 |
| OS | Win 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>';