#1120 Fix rendering release file when tag message is just whitespaces
Merged 7 years ago by pingou. Opened 7 years ago by vivekanand1101.
vivekanand1101/pagure isspace  into  master

@@ -41,8 +41,7 @@ 

              {{ tag['object'].oid | short }}

            </span>

          </div>

-         {% if tag['objecttype'] == "tag" %}

-           {% if tag['object'].message %}

+         {% if tag['objecttype'] == "tag" and tag['object'].message.strip() %}

              <strong>{{tag['tagname']}}</strong>

              {{ tag['head_msg'] }}

              {% if tag['body_msg'] %}
@@ -50,7 +49,6 @@ 

                {{ tag['body_msg'] }}

              </div>

              {% endif %}

-           {% endif %}

          {% else %}

              <strong>{{tag['tagname']}}</strong>

          {% endif %}

no initial comment

Took me a while but I found it:

-        {% if tag['objecttype'] == "tag" %}
-          {% if tag['object'].message %}
+        {% if tag['objecttype'] == "tag" and tag['object'].message.strip() %}
+          {% if tag['object'].message.strip() %}

And thinking of it, it makes sense :)

We could even drop the second if here

rebased

7 years ago

Pull-Request has been merged by pingou

7 years ago
Metadata