From 66aa0d86994f173a0be18478d75c74a37ffcf815 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sun, 25 Aug 2024 13:23:57 +0200 Subject: [PATCH] Avoid empty option in babelCall --- src/BufferParams.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index e8f302537c..5930aaf7b9 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -3539,7 +3539,7 @@ string BufferParams::babelCall(LaTeXFeatures const & features, string lang_opts, lang_opts = getStringFromVector(blangs); // The prefs may require the languages to // be submitted to babel itself (not the class). - if (langoptions || have_mods) + if ((langoptions || have_mods) && !lang_opts.empty()) return "\\usepackage[" + lang_opts + "]{babel}" + os.str(); return "\\usepackage{babel}" + os.str(); }