From 84f3ae56401a6b01d143f932b525c1ff1ddbf8bc Mon Sep 17 00:00:00 2001 From: Vivek Anand Date: Jul 12 2016 14:28:18 +0000 Subject: Fix template rendering when tag is created with just whitespace message --- diff --git a/pagure/templates/releases.html b/pagure/templates/releases.html index 8c61d06..dba6e9d 100644 --- a/pagure/templates/releases.html +++ b/pagure/templates/releases.html @@ -41,8 +41,7 @@ {{ tag['object'].oid | short }} - {% if tag['objecttype'] == "tag" %} - {% if tag['object'].message %} + {% if tag['objecttype'] == "tag" and tag['object'].message.strip() %} {{tag['tagname']}} {{ tag['head_msg'] }} {% if tag['body_msg'] %} @@ -50,7 +49,6 @@ {{ tag['body_msg'] }} {% endif %} - {% endif %} {% else %} {{tag['tagname']}} {% endif %}