diff --git a/sigal/themes/galleria/templates/index.html b/sigal/themes/galleria/templates/index.html
index a8e9374..33bb8a0 100644
--- a/sigal/themes/galleria/templates/index.html
+++ b/sigal/themes/galleria/templates/index.html
@@ -63,28 +63,25 @@
{% if album.medias %}
{% macro img_description(media) -%}
- {%- if media.big %}Full size{% endif %}
- {% if media.description %}
{{ media.description }}{% endif %}
-
- {%- if media.exif %}
+ {%- if media.big -%}Full size{%- endif -%}
+ {# clean up tags and whitespace, including newlines, in the description #}
+ {%- if media.description -%}
{{ media.description | striptags }}{%- endif -%}
+ {%- if media.exif -%}