From: Richard Heck Date: Sat, 6 Jun 2009 01:27:06 +0000 (+0000) Subject: Implement lists...though there are problems. X-Git-Tag: 2.0.0~6379 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9001dddf808c5c09e9e540d8526d3afeeb2c6cc9;p=features.git Implement lists...though there are problems. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29977 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index 58cf3d3c89..38a5c97d41 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -235,7 +235,7 @@ ParagraphList::const_iterator makeEnvironment(Buffer const & buf, switch (style.latextype) { case LATEX_ENVIRONMENT: - // case LATEX_LIST_ENVIRONMENT?? + case LATEX_LIST_ENVIRONMENT: case LATEX_ITEM_ENVIRONMENT: { // There are two possiblities in this case. // One is that we are still in the environment in which we @@ -352,6 +352,7 @@ void xhtmlParagraphs(ParagraphList const & paragraphs, 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; @@ -365,6 +366,7 @@ void xhtmlParagraphs(ParagraphList const & paragraphs, break; } case LATEX_ENVIRONMENT: + case LATEX_LIST_ENVIRONMENT: case LATEX_ITEM_ENVIRONMENT: { send = searchEnvironment(par, pend); par = makeEnvironment(buf, os, runparams, paragraphs, par,send); @@ -374,9 +376,12 @@ void xhtmlParagraphs(ParagraphList const & paragraphs, send = searchParagraph(par, pend); par = makeParagraphs(buf, os, runparams, paragraphs, par,send); break; - default: + case LATEX_BIB_ENVIRONMENT: + // FIXME + ++par; break; } + // FIXME?? // makeEnvironment may process more than one paragraphs and bypass pend if (distance(lastpar, par) >= distance(lastpar, pend)) break;