I have a bug and a workaround for you, all in one.
The bug is this: if you 'skip' levels when creating bulleted or numbered lists in the raw editor, you get a dot or number at each level.
For instance, typing
* Testing
1 Item
1 Item 2
produces
- Item
-
- Item 2
The reason for this is that instead of directly nesting <ol> or <ul> tags to indent the list, like so:
<ol>
<ol>
<li>...
it inserts a <li> tag after every <ol> or <ul> tag, like so:
<ol>
<li>
<ol>
<li>...
The solution I've come up with is very straightforward, but is admittedly a hack: in one of the postRenderingHandler subs, place the following:
$_[0] =~ s:(<[ou]l>)\s*<li>\s*\1:$1 $1:gsi;
The more elegant solution, of course, would be to figure out where in the code it's generating these extra <li> tags and test for multiple indentations there.
--
TWiki:Main/BrandonLynge - 07 Mar 2009