mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
fix View Source for literate documents
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@26918 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5579327a30
commit
f1a845ca42
@ -1806,11 +1806,11 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin,
|
||||
|
||||
if (full_source) {
|
||||
os << "% " << _("Preview source code") << "\n\n";
|
||||
if (isLatex())
|
||||
writeLaTeXSource(os, filePath(), runparams, true, true);
|
||||
else {
|
||||
if (isDocBook())
|
||||
writeDocBookSource(os, fileName(), runparams, false);
|
||||
}
|
||||
else
|
||||
// latex or literate
|
||||
writeLaTeXSource(os, filePath(), runparams, true, true);
|
||||
} else {
|
||||
runparams.par_begin = par_begin;
|
||||
runparams.par_end = par_end;
|
||||
@ -1825,12 +1825,12 @@ void Buffer::getSourceCode(odocstream & os, pit_type par_begin,
|
||||
convert<docstring>(par_end - 1))
|
||||
<< "\n\n";
|
||||
// output paragraphs
|
||||
if (isLatex()) {
|
||||
if (isDocBook())
|
||||
docbookParagraphs(paragraphs(), *this, os, runparams);
|
||||
else {
|
||||
// latex or literate
|
||||
texrow().reset();
|
||||
latexParagraphs(*this, text(), os, texrow(), runparams);
|
||||
} else {
|
||||
// DocBook
|
||||
docbookParagraphs(paragraphs(), *this, os, runparams);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -67,6 +67,9 @@ What's new
|
||||
- The nomenclature processor can be customized independently from the
|
||||
index processor (bug 5184).
|
||||
|
||||
- Fix View Source windows contents for documents with literate programming
|
||||
support enabled.
|
||||
|
||||
|
||||
* WINDOWS INSTALLER
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user