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

Bug #1201 [list] output adding extra <li></li>
Submitted: 2004-04-14 03:22 UTC
From: webluke at webluke dot net Assigned: quipo
Status: Closed Package: HTML_BBCodeParser
PHP Version: 4.3.3 OS: Linux
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 : 20 + 14 = ?

 
 [2004-04-14 03:22 UTC] webluke at webluke dot net
Description: ------------ When using [list] its adding extra "<li></li>" to the end of a list. Lists don't matter if ordered or unordered. Reproduce code: --------------- $str = "[list][*]bla bla[/list]"; $str = HTML_BBCodeParser::staticQparse($str); echo $str; Expected result: ---------------- <ul><li>bla bla</li></ul> Actual result: -------------- <ul><li>bla bla</li></ul><li></li>

Comments

 [2004-10-14 15:59 UTC] stoyan at videotron dot ca
Note that this happens only when you're not ending the list item with a \n Those work OK: [list][*]bla bla [/list] or [list] [*]bla bla [/list]
 [2005-10-18 13:11 UTC] quipo
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.