mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
DocBook: don't consider sectioning items that shouldn't be in TOC for anything section-related.
This commit is contained in:
parent
149e1ccc02
commit
b816cb0f3c
@ -718,7 +718,11 @@ void makeCommand(
|
||||
|
||||
bool isLayoutSectioning(Layout const & lay)
|
||||
{
|
||||
return lay.docbooksection() || lay.category() == from_utf8("Sectioning");
|
||||
if (lay.docbooksection()) // Special case: some DocBook styles must be handled as sections.
|
||||
return true;
|
||||
else if (lay.category() == from_utf8("Sectioning")) // Generic case.
|
||||
return lay.toclevel != Layout::NOT_IN_TOC;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user