bool const opened = html::openTag(os, il.htmltag(), il.htmlattr());
if (!il.counter().empty()) {
// FIXME Master buffer?
- LYXERR0(il.counter());
Counters & cntrs = buffer().params().documentClass().counters();
cntrs.step(il.counter());
if (!il.htmllabel().empty())
closeItemTag(os, *lastlay);
lastlay = 0;
}
- bool const item_tag_opened = openItemTag(os, cstyle);
+ bool const labelfirst = cstyle.htmllabelfirst();
+ bool item_tag_opened;
+ if (!labelfirst)
+ item_tag_opened = openItemTag(os, cstyle);
if (cstyle.labeltype == LABEL_MANUAL) {
bool const label_tag_opened = openLabelTag(os, cstyle);
sep = par->firstWordLyXHTML(os, runparams);
closeLabelTag(os, cstyle);
os << '\n';
}
-
+ if (labelfirst)
+ item_tag_opened = openItemTag(os, cstyle);
+ else
+ os << "<span class='item'>";
par->simpleLyXHTMLOnePar(buf, os, runparams,
outerFont(distance(paragraphs.begin(), par), paragraphs), sep);
+ if (!labelfirst)
+ os << "</span>";
++par;
if (item_tag_opened) {
// We may not want to close the tag yet, in particular,
ParagraphList::const_iterator pend = paragraphs.end();
while (par != pend) {
- LYXERR0(par->id());
Layout const & style = par->layout();
ParagraphList::const_iterator lastpar = par;
ParagraphList::const_iterator send;