From 631abb2da0308e52f80c01c930c7b93cf731b991 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 27 Apr 2012 21:17:08 -0400 Subject: [PATCH] Allow viewing full file of plaintext source. --- src/Buffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 { -- 2.39.2