]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.cpp
Amend 3093789e for cmake build
[lyx.git] / src / output_xhtml.cpp
index 0174339340687aa1f511cc10bcfad5209fdfb01c..a4aced68b0ac480bc2dc7d42a877d04deef30ce6 100644 (file)
@@ -15,7 +15,6 @@
 #include "output_xhtml.h"
 
 #include "Buffer.h"
-#include "buffer_funcs.h"
 #include "BufferParams.h"
 #include "Counters.h"
 #include "Font.h"
 #include "Text.h"
 #include "TextClass.h"
 
-#include "support/convert.h"
-#include "support/debug.h"
 #include "support/lassert.h"
-#include "support/lstrings.h"
-#include "support/textutils.h"
 
 #include <stack>
 #include <iostream>
@@ -679,9 +674,8 @@ 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) {
-               docstring tag = from_utf8("</section>");
                headerLevels.pop();
-               xs << XMLStream::ESCAPE_NONE << tag;
+               xs << xml::EndTag("section");
                xs << xml::CR();
        }
 }