mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Allow viewing full file of plaintext source.
This commit is contained in:
parent
db71ec4477
commit
631abb2da0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user