Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.3

Request #4607 The span class="hl-brackets" shall not include the spaces before
Submitted: 2005-06-16 09:51 UTC Modified: 2005-06-24 08:09 UTC
From: priplatv at netscape dot net Assigned:
Status: Closed Package: Text_Highlighter
PHP Version: 5.0.3 OS: Win XP but irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-16 09:51 UTC] priplatv at netscape dot net
Description: ------------ Text_Highlighter version 0.6.5 With list numbering on and tabsize set, the span class="hl-brackets" includes the spaces (from the tabs) before the bracket, which does not nicely display in case the class set the background-color. Reproduce code: --------------- $src = <<< EOT \t<p>Two paragraphs </p><p>correctly nested</p> \t<p>Paragraph with correctly <em>emphasized</em> overlapping</p> EOT; echo $hl -> highlight($src); Expected result: ---------------- <ol class="hl-main"> <li>   <span class="hl-brackets"><</span> <span class="hl-reserved">p</span> <span class="hl-brackets">></span> ... <span class="hl-brackets">></span> </li> <li>   <span class="hl-brackets"><</span> <span class="hl-reserved">p</span> <span class="hl-brackets">></span> ... <span class="hl-brackets">></span> </li> </ol> Actual result: -------------- <ol class="hl-main"> <li>   </span> <span class="hl-brackets"><</span> <span class="hl-reserved">p</span> <span class="hl-brackets">></span> ... <span class="hl-brackets">></span> </li> <li>  <span class="hl-brackets">  <</span> <span class="hl-reserved">p</span> <span class="hl-brackets">></span> ... <span class="hl-brackets">></span> </li> </ol>

Comments

 [2005-06-24 08:09 UTC] blindman
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/Text_Highlighter