Description

Two adjacent lists of same level and different types are glued together, making them the same list type. This ignores even empty lines between lists.

Steps to reproduce

See examples.

Example

 * hello
 * world

 1. hi
 2. ho

Yields:

I'd expect the correct behaviour would yield:

  1. hi
  2. ho

Likewise,

 1. hello
 2. world

 * hi
 * ho

Yields:

  1. hello
  2. world
  3. hi
  4. ho

While should yield:

  1. hello
  2. world

Component selection

Details

This Wiki has this bug too.

On my installation it is:

MoinMoin Version

1.7.2

OS and Version

Debian GNU/Linux 4.0 (stable/testing)

Python Version

2.5.2

Server Setup

fast-cgi

Server Details

apache 2.2.9

Language you are using the wiki in (set in the browser/UserPreferences)

English, Russian

Workaround

Insert any invisible markup between the two lists, e.g. <<BR>>. This inserts a paragraph between two lists, adding surplus space between them.

Another workaround is to enclose one of lists in a separately-parsed block:

 * hello
 * world
{{{#!wiki
 1. hi
 2. ho
}}}

This is what I used to demonstrate correct behaviour in the examples above. This yields us a nice:

  1. hi
  2. ho

Discussion

From the code perspective, this is expected behaviour (empty lines do lead to more space between items, but not a new list or new list type).

If you want a new list, put something "non-whitespace" in between. text, horizontal line, headline, whatever.


From the users perspective this is hard to detect but very annoing error.

E.g. TODO:

  1. find some bug
  2. report it to moin devs
  3. NOTE: moin devs might not consider the bug present
  4. Beware of grues!

This is a typical approach for writing small pages fast, and is this not what wiki is exactly about?

(The example is surely a fake, but I actually had two of my users stumbling upon this bug and asking, what is happening. The spent some time and changed the offending piece of markup eventually, and I can not locate the real life examples).

-- DanyaAlexeyevsky 2009-12-13 13:00:43

This bug is duplicate of MoinMoinBugs/MixedNumberedAndUnorderedLists

-- DanyaAlexeyevsky 2009-12-13 14:14:29

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/ItemizeAfterEnumerateProblem (last edited 2009-12-13 14:14:31 by DanyaAlexeyevsky)