]> git.lyx.org Git - features.git/commitdiff
Fix preview of external material with plaintext and DocBook.
authorRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 03:48:27 +0000 (23:48 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 03:51:06 +0000 (23:51 -0400)
(cherry picked from commit 93a612220ed4ce604c864b72b14efc59e8ce6683)

src/insets/InsetExternal.cpp
status.22x

index 097dc7d3e06479395cde5682569918fe1ee6e50d..8e89ead8be114f843813df3ea0ae2b68c8708998 100644 (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'));
 }
index 86543d00c93b8ee9bb66e556336b1f220c6f8b0e..35acf5ee38cc698d32ca1eb9254845bd14457c0a 100644 (file)
@@ -43,6 +43,8 @@ What's new
 
 - Fixed fen2ascii script.
 
+- Fixed preview of external material with plaintext and DocBook.
+
 
 * LYX2LYX