mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Whitespace
This commit is contained in:
parent
abd35bc33c
commit
7fb059bce4
@ -3532,7 +3532,7 @@ string BufferParams::babelCall(LaTeXFeatures const & features, string lang_opts,
|
|||||||
os << "\n\\babelprovide[import";
|
os << "\n\\babelprovide[import";
|
||||||
if (l == language)
|
if (l == language)
|
||||||
os << ", main";
|
os << ", main";
|
||||||
if (!babelLangOptions(l->lang(), true).empty())
|
if (!babelLangOptions(l->lang(), true).empty())
|
||||||
os << ", " << babelLangOptions(l->lang());
|
os << ", " << babelLangOptions(l->lang());
|
||||||
os << "]{" << blang << "}";
|
os << "]{" << blang << "}";
|
||||||
have_mods = true;
|
have_mods = true;
|
||||||
@ -3555,8 +3555,8 @@ string BufferParams::babelCall(LaTeXFeatures const & features, string lang_opts,
|
|||||||
}
|
}
|
||||||
if ((bp == 2 && useNonTeXFonts) || have_other_forceprovide) {
|
if ((bp == 2 && useNonTeXFonts) || have_other_forceprovide) {
|
||||||
// Options need to go to \babeprovide
|
// Options need to go to \babeprovide
|
||||||
// but only those set in document settings
|
// but only those set in document settings
|
||||||
if (!babelLangOptions(l->lang(), true).empty())
|
if (!babelLangOptions(l->lang(), true).empty())
|
||||||
os << "\n\\babelprovide["
|
os << "\n\\babelprovide["
|
||||||
<< babelLangOptions(l->lang())
|
<< babelLangOptions(l->lang())
|
||||||
<< "]{" << blang << "}";
|
<< "]{" << blang << "}";
|
||||||
@ -4100,7 +4100,7 @@ string const BufferParams::babelLangOptions(string const & lang, bool const only
|
|||||||
{
|
{
|
||||||
if (lang_options_babel_.find(lang) == lang_options_babel_.end()) {
|
if (lang_options_babel_.find(lang) == lang_options_babel_.end()) {
|
||||||
Language const * l = languages.getLanguage(lang);
|
Language const * l = languages.getLanguage(lang);
|
||||||
return (l && !onlycust) ? l->babelOpts() : string();
|
return (l && !onlycust) ? l->babelOpts() : string();
|
||||||
}
|
}
|
||||||
return lang_options_babel_.find(lang)->second;
|
return lang_options_babel_.find(lang)->second;
|
||||||
}
|
}
|
||||||
|
@ -343,8 +343,8 @@ public:
|
|||||||
/// babel language options
|
/// babel language options
|
||||||
std::map<std::string, std::string> lang_options_babel_;
|
std::map<std::string, std::string> lang_options_babel_;
|
||||||
///
|
///
|
||||||
std::string const babelLangOptions(std::string const & lang,
|
std::string const babelLangOptions(std::string const & lang,
|
||||||
bool const onlycust = false) const;
|
bool const onlycust = false) const;
|
||||||
///
|
///
|
||||||
void setBabelLangOptions(std::string const & lang, std::string const & opts)
|
void setBabelLangOptions(std::string const & lang, std::string const & opts)
|
||||||
{ lang_options_babel_[lang] = opts; }
|
{ lang_options_babel_[lang] = opts; }
|
||||||
|
Loading…
Reference in New Issue
Block a user