summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-05-14 18:04:10 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-05-14 18:04:10 (GMT)
commit378be4c7f3150e6440993e0bf07235b65fe44870 (patch)
treea43f3274924585fd498c0d73b2d0f23474b8ae9a
parentb1986fa8c3feaaba1d785d7f0c0fdba675a17c9d (diff)
downloadDoxygen-378be4c7f3150e6440993e0bf07235b65fe44870.zip
Doxygen-378be4c7f3150e6440993e0bf07235b65fe44870.tar.gz
Doxygen-378be4c7f3150e6440993e0bf07235b65fe44870.tar.bz2
Rename template filter '|e' to '|escape' to keep in line with Django
-rwxr-xr-xsrc/template.cpp4
-rw-r--r--templates/html/htmljssearchindex.tpl2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/template.cpp b/src/template.cpp
index 13ce7ef..a9c5421 100755
--- a/src/template.cpp
+++ b/src/template.cpp
@@ -1317,7 +1317,7 @@ class FilterUpper
//--------------------------------------------------------------------
/** @brief The implementation of the "e" filter */
-class FilterHtmlEscape
+class FilterEscape
{
public:
static TemplateVariant apply(const TemplateVariant &v,const TemplateVariant &)
@@ -1413,7 +1413,7 @@ static TemplateFilterFactory::AutoRegister<FilterList> fList("list
static TemplateFilterFactory::AutoRegister<FilterLower> fLower("lower");
static TemplateFilterFactory::AutoRegister<FilterUpper> fUpper("upper");
static TemplateFilterFactory::AutoRegister<FilterAppend> fAppend("append");
-static TemplateFilterFactory::AutoRegister<FilterHtmlEscape> fEscape("e");
+static TemplateFilterFactory::AutoRegister<FilterEscape> fEscape("escape");
static TemplateFilterFactory::AutoRegister<FilterLength> fLength("length");
static TemplateFilterFactory::AutoRegister<FilterNoWrap> fNoWrap("nowrap");
static TemplateFilterFactory::AutoRegister<FilterFlatten> fFlatten("flatten");
diff --git a/templates/html/htmljssearchindex.tpl b/templates/html/htmljssearchindex.tpl
index b23e19e..c963434 100644
--- a/templates/html/htmljssearchindex.tpl
+++ b/templates/html/htmljssearchindex.tpl
@@ -3,7 +3,7 @@ var searchData =
[
{% for group in si.symbolGroups %} ['{{ group.id }}_{{ symbolCount }}',['{{ group.name }}',{% spaceless %}{% for sym in group.symbols %}['{{ sym.relPath }}{{ sym.fileName }}{{ config.HTML_FILE_EXTENSION }}{% if sym.anchor %}#{{ sym.anchor }}{% endif %}',
{% if not config.EXT_LINKS_IN_WINDOW %}1{% else %}0{% endif %},
-'{{ sym.scope|nowrap|e }}']
+'{{ sym.scope|nowrap|escape }}']
{% if not forloop.last %},{% endif %}
{% endfor %}
{% update symbolCount=symbolCount+1 %}