commit 0dfa24020919a436a5ee8937bb0bbc7c0863406d
Author: Thibaut Cuvelier <[email protected]>
Date:   Wed Sep 16 04:13:42 2020 +0200

    XHTML: restore sections.
---
 src/output_xhtml.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp
index f8cd53e..fe396f8 100644
--- a/src/output_xhtml.cpp
+++ b/src/output_xhtml.cpp
@@ -675,7 +675,7 @@ void xhtmlParagraphs(Text const & text,
 
        // If need be, close <section>s, but only at the end of the document 
(otherwise, dealt with at the beginning
        // of the loop).
-       while (!headerLevels.empty() && headerLevels.top() > 
Layout::NOT_IN_TOC) {
+       while (!headerLevels.empty() && headerLevels.top() != 
Layout::NOT_IN_TOC && headerLevels.top() > 1) {
                docstring tag = from_utf8("</section>");
                headerLevels.pop();
                xs << XMLStream::ESCAPE_NONE << tag;
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to