X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Foutput_plaintext.cpp;h=d58c44a7964f42fdc5e75e5cb75451c1e0aa609c;hb=94f0968e9212f24997cfee0d17c6f060210edbc6;hp=3ff3771049b5b49a31f18b2f5cd08abd7568b9fa;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/output_plaintext.cpp b/src/output_plaintext.cpp index 3ff3771049..d58c44a796 100644 --- a/src/output_plaintext.cpp +++ b/src/output_plaintext.cpp @@ -34,9 +34,14 @@ namespace lyx { void writePlaintextFile(Buffer const & buf, FileName const & fname, OutputParams const & runparams) { - odocfstream ofs; + ofdocstream ofs; if (!openFileWrite(ofs, fname)) return; + + // make sure we are ready to export + buf.updateBuffer(); + buf.updateMacroInstances(OutputUpdate); + writePlaintextFile(buf, ofs, runparams); }