mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Amend ac98f21f
This commit is contained in:
parent
ac98f21f8c
commit
25d3d16360
@ -1110,7 +1110,7 @@ void docbookParagraphs(Text const &text,
|
||||
// Check the condition on the first few elements.
|
||||
bool hasPreface = false;
|
||||
pit_type pref_bpit = bpit;
|
||||
pit_type pref_epit = bpit + 1;
|
||||
pit_type pref_epit = bpit;
|
||||
|
||||
static const std::set<std::string> allowedElements = {
|
||||
// List from https://tdg.docbook.org/tdg/5.2/book.html
|
||||
@ -1118,7 +1118,7 @@ void docbookParagraphs(Text const &text,
|
||||
"glossary", "index", "part", "preface", "reference", "toc"
|
||||
};
|
||||
|
||||
for (; pref_epit <= epit; ++pref_epit) {
|
||||
for (; pref_epit < epit; ++pref_epit) {
|
||||
auto par = text.paragraphs().iterator_at(pref_epit);
|
||||
if (allowedElements.find(par->layout().docbooktag()) != allowedElements.end() ||
|
||||
allowedElements.find(par->layout().docbooksectiontag()) != allowedElements.end())
|
||||
|
Loading…
Reference in New Issue
Block a user