From 401961d08759b6be7ac28b9361abdb974fd17325 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 4 Feb 2017 16:07:58 +0100 Subject: [PATCH] Only close btUnit at the end of the master. --- src/output_latex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2