From: Richard Heck Date: Sat, 28 Apr 2012 01:17:08 +0000 (-0400) Subject: Allow viewing full file of plaintext source. X-Git-Tag: 2.1.0beta1~1933^2~2 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=631abb2da0308e52f80c01c930c7b93cf731b991;p=features.git Allow viewing full file of plaintext source. --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 20ca153959..0ac4f45d48 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -3337,6 +3337,11 @@ void Buffer::getSourceCode(odocstream & os, string const format, d->texrow.newline(); if (runparams.flavor == OutputParams::HTML) { writeLyXHTMLSource(os, runparams, output); + } else if (runparams.flavor == OutputParams::TEXT) { + if (output == OnlyPreamble) { + os << _("% Plaintext does not have a preamble."); + } else + writePlaintextFile(*this, os, runparams); } else if (params().isDocBook()) { writeDocBookSource(os, absFileName(), runparams, output); } else {