]> git.lyx.org Git - lyx.git/commitdiff
Do not output a \par inside a local language switch command
authorEnrico Forestieri <forenr@lyx.org>
Sun, 4 Jun 2017 01:12:41 +0000 (03:12 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Sun, 4 Jun 2017 01:14:14 +0000 (03:14 +0200)
src/Font.cpp

index 5bfbcdce8d9df18dfa14306559041d86a74004f8..86ffcd62cd6d65df7a8ba94fcc86c2c24aefa0b8 100644 (file)
@@ -507,7 +507,7 @@ int Font::latexWriteEndChanges(otexstream & os, BufferParams const & bparams,
        if (f.size() != FONT_SIZE_INHERIT) {
                // We only have to close if only size changed
                if (!env) {
-                       if (needPar) {
+                       if (needPar && !closeLanguage) {
                                os << "\\par";
                                count += 4;
                                needPar = false;