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

Bug #4608 Tabs not expanded in list mode
Submitted: 2005-06-16 15:21 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  
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 : 50 + 50 = ?

 
 [2005-06-16 15:21 UTC] priplatv at netscape dot net
Description: ------------ Text_Highlighter version 0.6.5 With list numbering on and tabsize set, tabs are not expanded to  . In the actual result I have entered the \t instead to show where it happens (on the 2nd and 3rd list line). The problem could temporarily be solved with echo $hl -> highlight($rndr -> preprocess($src)); which expands the tabs to   accordingly to the set tabsize. Is it possible that the preprocess function is nowhere called? Reproduce code: --------------- $src = <<< EOT <head> \t<title>Nice page</title> \t<meta http-equiv="Content-Type" content="text/xhtml;charset=utf-8" /> </head> EOT; echo $hl -> highlight($src); Expected result: ---------------- <ol class="hl-main"> <li> <span class="hl-brackets"><</span> <span class="hl-reserved">head</span> <span class="hl-brackets">></span> </li> <li>   <span class="hl-brackets"><</span> <span class="hl-reserved">title</span> <span class="hl-brackets">></span> <span class="hl-default">Nice page</span> ... <span class="hl-brackets">></span> </li> <li>   <span class="hl-brackets"><</span> <span class="hl-reserved">meta </span> ... <span class="hl-brackets">/></span> </li> <li> <span class="hl-brackets"></</span> <span class="hl-reserved">head</span> <span class="hl-brackets">></span> </li> </ol> Actual result: -------------- <ol class="hl-main"> <li> <span class="hl-brackets"><</span> <span class="hl-reserved">head</span> <span class="hl-brackets">></span> </li> <li> <span class="hl-brackets">\t<</span> <span class="hl-reserved">title</span> <span class="hl-brackets">></span> <span class="hl-default">Nice page</span> ... <span class="hl-brackets">></span> </li> <li> <span class="hl-brackets">\t<</span> <span class="hl-reserved">meta </span> ... <span class="hl-brackets">/></span> </li> <li> <span class="hl-brackets"></</span> <span class="hl-reserved">head</span> <span class="hl-brackets">></span> </li> </ol>

Comments

 [2005-06-24 13:10 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!