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

Bug #4606 span end tag at beginning of a list
Submitted: 2005-06-16 14:37 UTC
From: priplatv at netscape dot net Assigned: blindman
Status: Closed Package: Text_Highlighter
PHP Version: 5.0.3 OS: Win XP but irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-06-16 14:37 UTC] priplatv at netscape dot net
Description: ------------ Text_Highlighter version 0.6.5 If the first line starts with one or more tabs a </span> end tag appears in the output immediately after the <li> tag. Any following lines are OK. The code will not validate against the W3C validation service, but otherwise displays OK. Only with list numbering on. 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:07 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