From: Richard Heck Date: Sat, 6 Jun 2009 01:36:04 +0000 (+0000) Subject: At least for now, this has to be done differently. X-Git-Tag: 2.0.0~6377 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9fd3c8e9a4a5cad7eb3821c700bfb6e7e95da5ad;p=features.git At least for now, this has to be done differently. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29979 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/layouts/stdlists.inc b/lib/layouts/stdlists.inc index d50ee4f111..cfa828252f 100644 --- a/lib/layouts/stdlists.inc +++ b/lib/layouts/stdlists.inc @@ -71,9 +71,10 @@ Style Description LabelFont Series Bold EndFont - HTMLTag dl - HTMLItem dd - HTMLLabel dt + HTMLTag ol + HTMLItem li + HTMLLabel span + HTMLLabelAttr class='desc' End diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index 830764d2c8..67ae2cc302 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -245,11 +245,12 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf, // One is that we are still in the environment in which we // started---which we will be if the depth is the same. if (par->params().depth() == origdepth) { + Layout const & cstyle = par->layout(); if (lastlay != 0) { closeItemTag(os, *lastlay); lastlay = 0; } - Layout const & cstyle = par->layout(); + bool const item_tag_opened = openItemTag(os, cstyle); if (cstyle.labeltype == LABEL_MANUAL) { bool const label_tag_opened = openLabelTag(os, cstyle); sep = par->firstWordLyXHTML(os, runparams); @@ -265,7 +266,6 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf, os << '\n'; } - bool const item_tag_opened = openItemTag(os, cstyle); par->simpleLyXHTMLOnePar(buf, os, runparams, outerFont(distance(paragraphs.begin(), par), paragraphs), sep); ++par;