commit b816cb0f3c68a4ab361f964e7e2528a58ef94b8d
Author: Thibaut Cuvelier <[email protected]>
Date:   Thu Oct 22 05:24:55 2020 +0200

    DocBook: don't consider sectioning items that shouldn't be in TOC for 
anything section-related.
---
 src/output_docbook.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/output_docbook.cpp b/src/output_docbook.cpp
index 9a93207..59df193 100644
--- a/src/output_docbook.cpp
+++ b/src/output_docbook.cpp
@@ -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;
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to