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

Bug #18289 List not properly parsed
Submitted: 2011-02-22 04:14 UTC
From: yunosh Assigned: till
Status: Closed Package: Text_Wiki (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-02-22 04:14 UTC] yunosh (Jan Schneider)
Description: ------------ Using the default renderer, once a list level has been decreased, any indention that increases the level again fails. Test script: --------------- require 'Text/Wiki.php'; $text = <<<EOT * level one * level two * level one * level two EOT; $wiki = new Text_Wiki(); echo $wiki->transform($text); Expected result: ---------------- <ul> <li>level one<ul> <li>level two</li> </ul></li> <li>level one<ul> <li>level two</li> </ul></li> </ul> Actual result: -------------- <ul> <li>level one<ul> <li>level two</li> </ul></li> <li>level one</li> <li>level two</li> </ul>

Comments

 [2011-02-22 04:15 UTC] yunosh (Jan Schneider)
 [2011-03-19 23:53 UTC] till (Till Klampaeckel)
-Status: Open +Status: Feedback -Assigned To: +Assigned To: till
Hey Jan, I used your test script for a unit test and then applied your patch. The good news: it seems to fix it. ;-) However, it also seems like Text_Wiki has super awesome raceconditions when lots of operations are run. So when I run the test case standalone, it works, when I include the case in the test suite it doesn't. Any idea?
 [2011-03-20 03:45 UTC] till (Till Klampaeckel)
-Status: Feedback +Status: Closed
This bug has been fixed in SVN. 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. Remaining issues (failures with tests) are due to unfixable Text_Wiki issues and test suite setup. We'll take care of it with Text_Wiki2.