You're right, I'm sorry. LI is the only allowed child element to UL/ OL. I just had to change the Code from `` {{=UL("item1","item2",UL("item2_1","item2_2"))}} ``:template
to this `` {{=UL("item1",LI("item2",UL("item2_1","item2_2")))}} ``:template and everything looked fine. :) On Aug 1, 4:59 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > Are you telling me that you want this > > <ul> > <li>one</li> > <ul> > <li>one-one</li> > </ul> > </ul> > > instead of this > > <ul> > <li>one</li> > <li> > <ul> > <li>one-one</li> > </ul> > </li> > </ul> > > I do not think the former is valid HTML but I may be wrong. > > Massimo > > On Aug 1, 9:50 am, qqsaqq <sla...@gmx.net> wrote: > > > the UL or OL html helper wrap every *arg that is passed to it with an > > LI (if the arg is not a LI already). Even if you have a sub-UL in an > > UL, the sub-UL gets wrapped in an LI. This way you get a bullet too > > many in the outer UL. > > > To see the effect, try this (plugin_wiki) code: > > > `` > > {{=UL("item1","item2",UL("item2_1","item2_2"))}} > > ``:template > > > i think, to fix this, OL an UL should be added to the allowed_parent > > tupel of the UL (and OL) classes in html.py, like: > > > class UL(DIV): > > """ > > UL Component. > > > If subcomponents are not LI-, UL- or OL-components they will be > > wrapped in a LI > > > see also :class:`DIV` > > """ > > > tag = 'ul' > > > def _fixup(self): > > self._wrap_components((LI,UL,OL), LI) > > > Dunno if that works, but could we have a fix for the 'one too many > > bullet' thing? > > > Thank you.