mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
BufferParams.cpp: only whitespace
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18252 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0d555fa675
commit
3db8583e2b
@ -1409,16 +1409,16 @@ string const BufferParams::dvips_options() const
|
|||||||
string const BufferParams::babelCall(string const & lang_opts) const
|
string const BufferParams::babelCall(string const & lang_opts) const
|
||||||
{
|
{
|
||||||
string lang_pack = lyxrc.language_package;
|
string lang_pack = lyxrc.language_package;
|
||||||
if (lang_pack == "\\usepackage{babel}") {
|
if (lang_pack == "\\usepackage{babel}") {
|
||||||
// suppress the babel call when there is no babel language defined
|
// suppress the babel call when there is no babel language defined
|
||||||
// for the document language in the lib/languages file and if no
|
// for the document language in the lib/languages file and if no
|
||||||
// other languages are used
|
// other languages are used
|
||||||
if (language->babel().empty() && lang_opts.empty())
|
if (language->babel().empty() && lang_opts.empty())
|
||||||
lang_pack.clear();
|
lang_pack.clear();
|
||||||
if (!lyxrc.language_global_options && !lang_opts.empty())
|
if (!lyxrc.language_global_options && !lang_opts.empty())
|
||||||
lang_pack = string("\\usepackage[") + lang_opts + "]{babel}";
|
lang_pack = string("\\usepackage[") + lang_opts + "]{babel}";
|
||||||
if (lyxrc.language_global_options)
|
if (lyxrc.language_global_options)
|
||||||
return lang_pack;
|
return lang_pack;
|
||||||
}
|
}
|
||||||
return lang_pack;
|
return lang_pack;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user