Description

The html formatter doesn't allow to put a numbered list inside bullet lists -- it puts another bullet list instead.

Steps to reproduce

  1. Create a Wiki Creole parser plugin according to the specification
  2. Spend 2 hours trying to realize why list mixing doesn't work
  3. Insert some debugging messages into the emitter
  4. Realize the bug is in the formatter

Example

http://helios.wmid.amu.edu.pl/~sheep/cgi-bin/index.cgi/Sand_box?action=show

Details

This code should produce mixed lists (number, bullet, number) but fails at some moment (produces number, bullet, bullet):

self.formatter.number_list(1)
self.formatter.listitem(1)
self.formatter.text('number')
self.formatter.bullet_list(1)
self.formatter.listitem(1)
self.formatter.text('bullet')
self.formatter.number_list(1)
self.formatter.listitem(1)
self.formatter.text('number')
self.formatter.listitem(0)
self.formatter.number_list(0)
self.formatter.listitem(0)
self.formatter.bullet_list(0)
self.formatter.listitem(0)
self.formatter.number_list(0)

MoinMoin Version

1.5.4

OS and Version

Python Version

Server Setup

Server Details

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

Workaround

Don't mix lists

Discussion

Somehow the default moin parser handles this...

  1. ziew
    • ziew
      1. ziew
        • ziew

And in the end it seems that I'm just an idiot.

It was my css that was producing those bullet lists.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/HtmlFormatterMixingListsNotSane (last edited 2007-10-29 19:20:55 by localhost)