From 71f532db4bbce90574781413ffb9f5d2fdeb5b50 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Sun, 4 Jun 2017 03:12:41 +0200 Subject: [PATCH] Do not output a \par inside a local language switch command --- src/Font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Font.cpp b/src/Font.cpp index 5bfbcdce8d..86ffcd62cd 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -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;