]> git.lyx.org Git - features.git/commit
Fix language nesting regression
authorGeorg Baum <baum@lyx.org>
Mon, 19 Oct 2015 19:08:01 +0000 (21:08 +0200)
committerGeorg Baum <baum@lyx.org>
Mon, 19 Oct 2015 19:08:01 +0000 (21:08 +0200)
commitbe3e470068d29d01fc14a7240ac8b1d6b2ac8024
treef6c48b5ff4f859741186974d4ac91d027f81f51f
parente245a18da084a46f83fd3a6b1113338626c769f6
Fix language nesting regression

b1c68dccf8f and 46aed6d2b90 fixed some language nesting issues, but introduced
a regression for the case that there is a standard paragraph in a foreign
language, followed by a list (e.g. itemize) in the same language, followed
by the end of the document, as e.g. in lib/doc/de/Additional.lyx. The reason
for this was that not all language ending commands did reset
state->open_polyglossia_lang_ correctly.
I am sure that one can still construct broken corner cases, and I am also sure
that this was already possible before b1c68dccf8f and 46aed6d2b90. However,
this fix seems to fix the most important issues, and to get nesting completely
correct we would probably need some stack-like structure, for languages and
encodings, also for the CJK part (which is not touched at all by this commit).
src/output_latex.cpp