diff --git a/src/base.html b/src/base.html
index 3bd80fcd3..28f6f64d5 100644
--- a/src/base.html
+++ b/src/base.html
@@ -329,20 +329,20 @@
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}
{% set path = "assets/javascripts/lunr/" %}
-
+
{% for language in languages | map("trim") %}
{% if language != "en" %}
{% if language == "jp" %}
-
+
{% endif %}
{% if language in ($md-lunr-languages$) %}
-
{% endif %}
{% endif %}
{% endfor %}
{% if languages | length > 1 %}
-
+
{% endif %}
{% endif %}
{% endif %}