From 0dfa24020919a436a5ee8937bb0bbc7c0863406d Mon Sep 17 00:00:00 2001 From: Thibaut Cuvelier Date: Wed, 16 Sep 2020 04:13:42 +0200 Subject: [PATCH] XHTML: restore sections. --- src/output_xhtml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp index f8cd53e478..fe396f83d8 100644 --- a/src/output_xhtml.cpp +++ b/src/output_xhtml.cpp @@ -675,7 +675,7 @@ void xhtmlParagraphs(Text const & text, // If need be, close
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("
"); headerLevels.pop(); xs << XMLStream::ESCAPE_NONE << tag;