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:
- hello
- world
- hi
- ho
I'd expect the correct behaviour would yield:
- hello
- world
- hi
- ho
Likewise,
1. hello 2. world * hi * ho
Yields:
- hello
- world
- hi
- ho
While should yield:
- hello
- world
- hi
- ho
Component selection
- parsers/text_moinmoin.py, probably
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:
- hello
- world
- hi
- 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:
- find some bug
- report it to moin devs
- NOTE: moin devs might not consider the bug present
- 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
- Priority:
- Assigned to:
- Status: