#pragma section-numbers on = Description = In a bulleted list, with indention level > 1, placing a block element between 2 list items causes the idention level of the 2nd list item to be displayed with the indention level 1 bullet. == Steps to reproduce == ## Describe the steps needed to reproduce the bug. If we can't reproduce it, we probably can't fix it. 1. Create a list of bulleted items where the idention level is greater than 1 (e.g., two spaces before * character). 1. Place a multi-line block element between two of the list elements. 1. Notice that the bullet of the list item following the block element is incorrectly shown as the indent level 1 bullet. == Example == '''Wiki code:''' {{{ Test of list indention problem with blocks * Bullet indent level 1 * Bullet indent level 2 {{{ Sample code -- blah blah blah }} -- brackets altered for code display * Should be at bullet indent level 2 -- but displayed as indent level 1 bullet }}} '''Displayed:''' Test of list indention problem with blocks * Bullet indent level 1 * Bullet indent level 2 {{{ Sample code -- blah blah blah }}} * Should be at bullet indent level 2 -- but displayed as indent level 1 bullet == Details == This Wiki. (I.e., replicated on the WikiSandBox for the MoinMoin Wiki.). == Workaround == I am using this workaround. -- ReimarBauer <<DateTime(2005-03-16T19:02:52Z)>> * Bullet indent level 1 * Bullet indent level 2{{{ Sample code -- blah blah blah}}} * Should be at bullet indent level 2 -- but displayed as indent level 1 bullet '''Wiki Code:''' {{{ * Bullet indent level 1 ## Braces placed at end of lines, instead of separate lines * Bullet indent level 2{{{ Sample code -- blah blah blah}} -- brackets altered for code display * Should be at bullet indent level 2 -- but displayed as indent level 1 bullet }}} = Discussion = Very similar to MoinMoinBugs/BlockElementsInList bug; and again, probably is an undefined situation. However, I'd argue that this would be a fairly common situation -- a bulleted list with source code listed under individual items. I think Reimar's workaround makes this significantly less serious (thanks Reimar!) - JeffMeyer <<DateTime(2005-03-16T21:11:35Z)>> This is not a bug. The example markup is wrong. The list should be finished when a new block element is found at the same level of the start of the list: 1. This is a start of a list {{{ This block element ends the list above }}} 1. This is another list If one want to include a block element in a list, it must be a child of a list item: 1. This is a start of a list {{{ This block element is a child of item 1 }}} 1. This is item 2 This markup also work for bulleted lists: * This is the first paragraph of item 1 {{{ This block element is the second block element of item 1 }}} * This is item 2 But it will not work for numbered lists: 1. This is list 1 with one item {{{ This block element is list 2, because indent is implemented with list without a bullet. }}} 1. This is list 3 with one item But this will work for numbered lists - this is actually Reimar workaround: 1. This is item 1 1. {{{ This block element is item 2 }}} 1. This is item 3 One should not use lists to design a page as numbered indented paragraphs. Use lists for lists - one or two lines of text per item, and numbered headings for paragraphs. == Example usage == === First paragraph === Some text... {{{ And some code }}} === Second paragraph === Some text... {{{ And some code }}} = Plan = ## This part is for Moin``Moin developers: * Priority: * Assigned to: * Status: ---- ## When the bug is fixed, replace the category to Category MoinMoinBugFixed ## If this is not a bug, replace with Category MoinMoinNoBug CategoryMoinMoinNoBug