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

Bug #20074 Unordered lists not working as expected
Submitted: 2013-09-25 21:31 UTC
From: alienn Assigned:
Status: Open Package: Text_Wiki (version 1.2.1)
PHP Version: 5.4.9 OS: Ubuntu 13.04
Roadmaps: (Not assigned)    
Subscription  


 [2013-09-25 21:31 UTC] alienn (Some One)
Description: ------------ When cerating unordered list like this: * Test1 * Sub1test1 * Sub2test1 * Test2 * Sub1Test2 * Sub2Test2 I would expect to receive two level 1 elemente and four level 2 elements. But I receive five level 1 elements and only two level 2 elements (Sub1test1 and Sub2test1). Test script: --------------- * Test1 * Sub1test1 * Sub2test1 * Test2 * Sub1test2 * Sub2test2 Expected result: ---------------- <ul> <li>Test1<ul> <li>Sub1test1</li> <li>Sub2test1</li> </ul></li> <li>Test2</li> <li>Sub1test2</li> <li>Sub2test2</li> </ul> Actual result: -------------- <ul> <li>Test1</li> <ul> <li>Sub1test1</li> <li>Sub2test1</li> </ul> <li>Test2</li> <ul> <li>Sub1test2</li> <li>Sub2test2</li> </ul> </ul>

Comments

 [2015-02-07 03:05 UTC] ancow (Anonymous Coward)
It turns out that alternating the second levels between leading with one and two spaces results in the desired behaviour. So you would need to do: * Test1 * Sub1test1 * Sub2test1 * Test2 * Sub1Test2 * Sub2Test2