]> git.lyx.org Git - features.git/commit
Also track local language switches
authorEnrico Forestieri <forenr@lyx.org>
Tue, 27 Sep 2016 21:00:29 +0000 (23:00 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 27 Sep 2016 21:00:29 +0000 (23:00 +0200)
commit7e3494c293b94e1f7bc80915da0f9b49fd0e0ccc
tree5ffad298c8eecbfcd8123388c0066ebf584f8cb9
parente40fa86a975a5d3ec7ecc0a1d33d082774ba7cb2
Also track local language switches

Until now this was not done for essentially two reasons. The first
one is that local switches are used for short text insertions, so that
they are unlikely crossing environment boundaries. The second one
is that if we have to close a language at the end of an environment
we would be missing the right termination command. As this last
issue can be overcome by simply storing in the stack the current
nest level with a sign denoting the kind of switch, there is no
reason anymore not to track also local languages switches.
Also factor out some commonly used constructs in order to improve
readability.
src/Font.cpp
src/output_latex.cpp
src/output_latex.h