mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix preview of external material with plaintext and DocBook.
(cherry picked from commit 93a612220e
)
This commit is contained in:
parent
d7ecdedd67
commit
a536ee7718
@ -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'));
|
||||
}
|
||||
|
@ -43,6 +43,8 @@ What's new
|
||||
|
||||
- Fixed fen2ascii script.
|
||||
|
||||
- Fixed preview of external material with plaintext and DocBook.
|
||||
|
||||
|
||||
* LYX2LYX
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user