]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
Pass the encoding to the japanese pLaTeX processor (#4697).
[lyx.git] / src / output_plaintext.cpp
index 97e3ab11270c5fab649507d74e8ae2a679c32a88..d58c44a7964f42fdc5e75e5cb75451c1e0aa609c 100644 (file)
@@ -37,6 +37,11 @@ void writePlaintextFile(Buffer const & buf, FileName const & fname,
        ofdocstream ofs;
        if (!openFileWrite(ofs, fname))
                return;
+
+       // make sure we are ready to export
+       buf.updateBuffer();
+       buf.updateMacroInstances(OutputUpdate);
+
        writePlaintextFile(buf, ofs, runparams);
 }