]> git.lyx.org Git - lyx.git/blobdiff - src/output_plaintext.cpp
Translations for listings insets
[lyx.git] / src / output_plaintext.cpp
index 0619b0668c86d8fd7d92fc4df5f234add8192f93..d58c44a7964f42fdc5e75e5cb75451c1e0aa609c 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author Lars Gullik Bjønnes
+ * \author Lars Gullik Bjønnes
  *
  * Full author contact details are available in file CREDITS.
  */
@@ -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);
 }