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

Bug #5879 Nested lists to do not parse properly in Text_Wiki
Submitted: 2005-11-06 19:54 UTC
From: titus at barik dot net Assigned: toggg
Status: Closed Package: Text_Wiki
PHP Version: Irrelevant OS: FreeBSD
Roadmaps: (Not assigned)    
Subscription  


 [2005-11-06 19:54 UTC] titus at barik dot net
Description: ------------ Nested lists yield incorrect output. In stable, nested lists are not parsed properly. In CVS, they are not parsed at all. Test script: --------------- require('Text/Wiki.php'); $wiki = new Text_Wiki(); echo "<html>\n"; echo "<head><title>Wiki List Test</title></head>\n"; echo "<body>\n\n"; $text = <<<EOQ * U1-1 # O2-1 # O2-2 * U1-2 * U1-3 Expected result: ---------------- <ul> <li>U1-1 <ol> <li>O2-1</li> <li>O2-2</li> </ol> </li> <li>U1-2</li> <li>U1-3</li> </ul> Actual result: -------------- <ul> <li>U1-1</li> </ul> <p># O2-1<br /> # O2-2</p> <ul> <li>U1-2</li> <li>U1-3</li> </ul>

Comments

 [2005-11-06 20:46 UTC] toggg
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.