From 1f896ea509ed6a42fdb465b10927d5cb07ef3939 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Mon, 29 Nov 2021 11:08:21 +0100 Subject: [PATCH] [fix] query_in_title: add missing space in title Suggested-by: @unixfox https://github.com/searxng/searxng/pull/485#issuecomment-981406978 Signed-off-by: Markus Heiser --- searx/templates/oscar/results.html | 2 +- searx/templates/simple/results.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/searx/templates/oscar/results.html b/searx/templates/oscar/results.html index ce99fe0a..ac717915 100644 --- a/searx/templates/oscar/results.html +++ b/searx/templates/oscar/results.html @@ -16,7 +16,7 @@ {%- endmacro %} {%- macro search_url() %}{{ url_for('search', _external=True) }}?q={{ q|urlencode }}{% if selected_categories %}&categories={{ selected_categories|join(",") | replace(' ','+') }}{% endif %}{% if pageno > 1 %}&pageno={{ pageno }}{% endif %}{% if time_range %}&time_range={{ time_range }}{% endif %}{% if current_language != 'all' %}&language={{ current_language }}{% endif %}{% endmacro -%} -{% block title %}{% if query_in_title %}{{- q|e -}} - {% endif %}{% endblock %} +{% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %} {% block meta %}{{" "}}{% endblock %} {% block content %} {% include 'oscar/search.html' %} diff --git a/searx/templates/simple/results.html b/searx/templates/simple/results.html index 5a279bd7..72e10e07 100644 --- a/searx/templates/simple/results.html +++ b/searx/templates/simple/results.html @@ -7,7 +7,7 @@ {% endfor %} {% endfor %} {%- endmacro %} -{% block title %}{% if query_in_title %}{{- q|e -}} - {% endif %}{% endblock %} +{% block title %}{% if query_in_title %}{{- q|e }} - {% endif %}{% endblock %} {% block meta %}{% endblock %} {% block content %}