From: Juergen Spitzmueller Date: Sat, 4 Feb 2017 15:07:58 +0000 (+0100) Subject: Only close btUnit at the end of the master. X-Git-Tag: 2.3.0alpha1~401 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=401961d08759b6be7ac28b9361abdb974fd17325;p=features.git Only close btUnit at the end of the master. --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 0e2abadbc0..33c6c7e80a 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -1403,7 +1403,7 @@ void latexParagraphs(Buffer const & buf, } } - if (runparams.openbtUnit) + if (maintext && !is_child && runparams.openbtUnit) os << "\\end{btUnit}\n"; // if "auto end" is switched off, explicitly close the language at the end