diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 5f94ecbe2c..35eab49a05 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -3135,8 +3135,10 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir, updateMacroInstances(); // Plain text backend - if (backend_format == "text") + if (backend_format == "text") { + runparams.flavor = OutputParams::TEXT; writePlaintextFile(*this, FileName(filename), runparams); + } // HTML backend else if (backend_format == "xhtml") { runparams.flavor = OutputParams::HTML; @@ -3269,12 +3271,10 @@ vector Buffer::exportableFormats(bool only_viewable) const vector Buffer::backends() const { vector v; - if (params().baseClass()->isTeXClassAvailable()) { - v.push_back(bufferFormat()); - // FIXME: Don't hardcode format names here, but use a flag - if (v.back() == "latex") - v.push_back("pdflatex"); - } + v.push_back(bufferFormat()); + // FIXME: Don't hardcode format names here, but use a flag + if (v.back() == "latex") + v.push_back("pdflatex"); v.push_back("xhtml"); v.push_back("text"); v.push_back("lyx"); diff --git a/src/OutputParams.h b/src/OutputParams.h index f2c3868bd9..414e07e60a 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -35,7 +35,8 @@ public: PDFLATEX, XETEX, XML, - HTML + HTML, + TEXT }; enum TableCell {