]> git.lyx.org Git - lyx.git/blobdiff - src/output_xhtml.cpp
Refactor InsetQuotes.h enums
[lyx.git] / src / output_xhtml.cpp
index 0174339340687aa1f511cc10bcfad5209fdfb01c..60be35c9a1a7866b3dcffff147b38a55c92638d6 100644 (file)
 #include "output_xhtml.h"
 
 #include "Buffer.h"
-#include "buffer_funcs.h"
 #include "BufferParams.h"
 #include "Counters.h"
 #include "Font.h"
 #include "Layout.h"
-#include "OutputParams.h"
 #include "Paragraph.h"
 #include "ParagraphList.h"
 #include "ParagraphParameters.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 +673,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();
        }
 }