// "nice" means that the buffer is exported to LaTeX format but not
// run through the LaTeX compiler.
// If we're running through the LaTeX compiler, we should write the
- // generated files in the bufer's temporary directory.
+ // generated files in the buffer's temporary directory.
bool const external_in_tmpdir = !runparams.nice;
bool const dryrun = runparams.dryrun || runparams.inComment;
external::writeExternal(params_, "Ascii", buf, os,
*(runparams.exportdata), false,
runparams.dryrun || runparams.inComment);
- return runparams.linelen; // start with column 0 in new line
+ return PLAINTEXT_NEWLINE;
}
docstring const latex_string(InsetExternal const & inset, Buffer const & buffer)
{
odocstringstream os;
- OutputParams runparams;
+ OutputParams runparams(0);
runparams.flavor = OutputParams::LATEX;
inset.latex(buffer, os, runparams);
return os.str();