avoid empty class options

This commit is contained in:
Juergen Spitzmueller 2012-06-08 19:48:24 +02:00
parent 785332f305
commit a2f32db171

View File

@ -1383,7 +1383,8 @@ bool BufferParams::writeLaTeX(otexstream & os, LaTeXFeatures & features,
language_options << ',';
language_options << language->babel();
}
if (global && !features.needBabelLangOptions())
if (global && !features.needBabelLangOptions()
&& !language_options.str().empty())
clsoptions << language_options.str() << ',';
}