Only close btUnit at the end of the master.

This commit is contained in:
Juergen Spitzmueller 2017-02-04 16:07:58 +01:00
parent 199c3f8e22
commit 401961d087

View 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