]> git.lyx.org Git - features.git/commitdiff
Only close btUnit at the end of the master.
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 4 Feb 2017 15:07:58 +0000 (16:07 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 4 Feb 2017 15:07:58 +0000 (16:07 +0100)
src/output_latex.cpp

index 0e2abadbc00e5954de2a77356b5ec9fd21ccbb49..33c6c7e80aa3c05044167c3474eb8062a3360b50 100644 (file)
@@ -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