mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
rename function
This commit is contained in:
parent
325f1429f8
commit
747a4a7946
@ -1247,7 +1247,7 @@ void Paragraph::Private::latexSpecialChar(otexstream & os,
|
||||
// Both a layout tag and a dedicated inset seem too much effort for this.
|
||||
string const hr_url_escape_chars = "\\#%";
|
||||
if (contains(hr_url_escape_chars, c) && runparams.use_hyperref && il.latexname() == "url"
|
||||
&& il.requiresPackage("url")) {
|
||||
&& il.requiresFeature("url")) {
|
||||
os << "\\";
|
||||
os.put(c);
|
||||
return;
|
||||
|
@ -998,9 +998,9 @@ int InsetLayout::requiredArgs() const
|
||||
}
|
||||
|
||||
|
||||
bool InsetLayout::requiresPackage(string const pkg) const
|
||||
bool InsetLayout::requiresFeature(string const f) const
|
||||
{
|
||||
return required_.find(pkg) != required_.end();
|
||||
return required_.find(f) != required_.end();
|
||||
}
|
||||
|
||||
|
||||
|
@ -202,7 +202,7 @@ public:
|
||||
///
|
||||
std::set<std::string> const & required() const { return required_; }
|
||||
///
|
||||
bool requiresPackage(std::string const pkg) const;
|
||||
bool requiresFeature(std::string const f) const;
|
||||
///
|
||||
bool isMultiPar() const { return multipar_; }
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user