]> git.lyx.org Git - lyx.git/blobdiff - src/output_latex.cpp
Revert "XHTML: remove DOCTYPE, as the document is then understood as HTML4/XHTML1...
[lyx.git] / src / output_latex.cpp
index d567ecc53c9824ecf82ff2abb05f8ad310ece7b9..12f58aaecdaff0c9d5c103321425d3d35854fde0 100644 (file)
@@ -1627,7 +1627,8 @@ void latexParagraphs(Buffer const & buf,
                                                        << "}\n";
                                }
                        }
-               } else if (runparams.need_maketitle && !runparams.have_maketitle && !layout.inpreamble) {
+               } else if (runparams.need_maketitle && !runparams.have_maketitle
+                          && !layout.inpreamble && !text.inset().isInTitle()) {
                        if (tclass.titletype() == TITLE_ENVIRONMENT) {
                                os << "\\end{" << from_ascii(tclass.titlename())
                                                << "}\n";