From 8df174c4461f3b57f4fe9c43004f96d989942b53 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 30 Nov 2009 23:26:10 +0000 Subject: [PATCH] I seem to have been testing for the same thing twice, more or less. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32266 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/output_xhtml.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index 3d11f25f89..1cddb7c9d9 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -612,7 +612,8 @@ ParagraphList::const_iterator makeBibliography(Buffer const & buf, bool isNormalEnv(Layout const & lay) { - return lay.latextype == LATEX_ENVIRONMENT; + return lay.latextype == LATEX_ENVIRONMENT + || lay.latextype == LATEX_BIB_ENVIRONMENT; } @@ -644,8 +645,7 @@ ParagraphList::const_iterator makeEnvironmentHtml(Buffer const & buf, // types. If so, then we'll need to take the counter and add "i", // "ii", etc, as with enum. if (!style.counter.empty() && - (par == pbegin || !isNormalEnv(style)) - && style.latextype == LATEX_LIST_ENVIRONMENT) + (par == pbegin || !isNormalEnv(style))) buf.params().documentClass().counters().step(style.counter); ParagraphList::const_iterator send; // this will be positive, if we want to skip the initial word -- 2.39.2