Fix preview of external material with plaintext and DocBook.

(cherry picked from commit 93a612220e)
This commit is contained in:
Richard Heck 2016-07-30 23:48:27 -04:00
parent d7ecdedd67
commit a536ee7718
2 changed files with 8 additions and 4 deletions

View File

@ -729,10 +729,11 @@ int InsetExternal::plaintext(odocstringstream & os,
TexRow texrow;
otexstream ots(os, texrow);
bool const external_in_tmpdir = !runparams.nice;
bool const dryrun = runparams.dryrun || runparams.inComment;
ots << '\n'; // output external material on a new line
external::writeExternal(params_, "Ascii", buffer(), ots,
*(runparams.exportdata), false,
runparams.dryrun || runparams.inComment);
*(runparams.exportdata), external_in_tmpdir, dryrun);
return PLAINTEXT_NEWLINE;
}
@ -743,9 +744,10 @@ int InsetExternal::docbook(odocstream & os,
TexRow texrow;
odocstringstream ods;
otexstream ots(ods, texrow);
bool const external_in_tmpdir = !runparams.nice;
bool const dryrun = runparams.dryrun || runparams.inComment;
external::writeExternal(params_, "DocBook", buffer(), ots,
*(runparams.exportdata), false,
runparams.dryrun || runparams.inComment);
*(runparams.exportdata), external_in_tmpdir, dryrun);
os << ods.str();
return int(count(ods.str().begin(), ods.str().end(), '\n'));
}

View File

@ -43,6 +43,8 @@ What's new
- Fixed fen2ascii script.
- Fixed preview of external material with plaintext and DocBook.
* LYX2LYX