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

Request #4607 The span class="hl-brackets" shall not include the spaces before
Submitted: 2005-06-16 14:51 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  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 39 - 5 = ?

 
 [2005-06-16 14: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 13: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