rename function

This commit is contained in:
Juergen Spitzmueller 2024-06-09 07:29:37 +02:00
parent 325f1429f8
commit 747a4a7946
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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();
}

View File

@ -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_; }
///