// be done at all in HTML.)
// Code adapated from Buffer::Impl::setLabel
+ bool const isenum = bstyle.labeltype == LABEL_ENUMERATE;
docstring enumcounter = bstyle.counter.empty() ?
- (bstyle.labeltype == LABEL_ENUMERATE ?
- from_ascii("lyxenum") : from_ascii("lyxitem") ) :
+ ( isenum ? from_ascii("enum") : from_ascii("lyxitem") ) :
bstyle.counter;
switch (par->itemdepth) {
case 2:
// not a valid enumdepth...
break;
}
- openParTag(xs, bstyle, to_utf8(enumcounter), pbegin->magicLabel());
+ openParTag(xs, bstyle,
+ string( isenum ? "lyxenum" : "lyxitem" ) + " "
+ + to_utf8(enumcounter), pbegin->magicLabel());
}
else
openParTag(xs, bstyle, pbegin->magicLabel());