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);
}
return make_pair(d, docstring(d, ' '));
}
+
void writePlaintextParagraph(Buffer const & buf,
Paragraph const & par,
odocstream & os,