mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
XHTML: restore sections.
This commit is contained in:
parent
1991d0ed24
commit
0dfa240209
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user