summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-11-04 12:58:12 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-11-04 12:58:12 +0100
commit46dd502592f5ad09fab761c9311065b72ee3e55d (patch)
tree9bd9af2780ec3896048056dc1ea311582c73260c
parentc0fc248213066ef0ad4ed439d570b225b78afd44 (diff)
downloadsearxng-46dd502592f5ad09fab761c9311065b72ee3e55d.tar.gz
searxng-46dd502592f5ad09fab761c9311065b72ee3e55d.zip
[fix][template][oscar] print ',' only if postcode is found
-rw-r--r--searx/templates/oscar/result_templates/map.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html
index 2c1e549e3..a7c37dd59 100644
--- a/searx/templates/oscar/result_templates/map.html
+++ b/searx/templates/oscar/result_templates/map.html
@@ -20,8 +20,8 @@
</span><br/>
{% endif %}
{% if result.address.locality %}
- <span itemprop="addressLocality">{{ result.address.locality }}</span>,
- {% if result.address.postcode %} <span itemprop="postalCode">{{ result.address.postcode }}</span>{% endif %}
+ <span itemprop="addressLocality">{{ result.address.locality }}</span>
+ {% if result.address.postcode %}, <span itemprop="postalCode">{{ result.address.postcode }}</span>{% endif %}
<br/>
{% endif %}
{% if result.address.country %}