mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
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
This commit is contained in:
parent
4f51edea21
commit
8df174c446
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user