Description

In lists, items which contain e.g. a <strong> are rendered within a paragraph. Items that contain text only are not. This messes with the spacing between the items when displayed.

Also, it appears that the <p> tags are never closed.

Steps to reproduce

Try a list like

 * an item '''with''' a strong element
 * an item without a strong element
 * an item without a strong element
 * an item '''with''' a strong element

The resulting HTML will be similar to this:

<ul>
  <li>
    <p class="line862">
      an item <strong>with</strong> a strong element
      <span class="anchor" id="line-54"></span>
  </li>
  <li>
    an item without a strong element
    <span class="anchor" id="line-55"></span>
  </li>
  <li>
    an item without a strong element
    <span class="anchor" id="line-56"></span>
  </li>
  <li>
  <p class="line862">
    an item <strong>with</strong> a strong element
    <span class="anchor" id="line-57"></span>
  </li>
</ul>

Example

On my machines the Bug is visible here:

The margin between the two middle lines is smaller than the margin between lines 1/2 and 3/4.

Component selection

Details

This Wiki.

Workaround

Ignore it. :-)

Discussion

Plan


CategoryMoinMoinBug

MoinMoin: MoinMoinBugs/ListItemParagraphs (last edited 2010-04-15 22:20:25 by host169-2)