From ba25f73ac20f38050be2385fd06f0059f7da5a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Fri, 15 Jan 2021 22:53:17 +0100 Subject: [PATCH] Don't show empty rectangle for hunk-less patches Confer the .builds/feebsd-latest.yml => .builds/freebsd-latest.yml in https://git.sr.ht/~nabijaczleweli/febug/commit/1a001bfdfbe08b155fd5a3e3ea178da8774634a8 --- gitsrht/templates/utils.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitsrht/templates/utils.html b/gitsrht/templates/utils.html index fdbda60..a325efd 100644 --- a/gitsrht/templates/utils.html +++ b/gitsrht/templates/utils.html @@ -186,7 +186,7 @@ endif %}{% endfor %} if patch.delta.old_file.mode != patch.delta.new_file.mode %}{# #}{# #}{% endif %} -
+{% if patch.hunks|length %}
{% for hunk in patch.hunks %}
 {% set hunk_index = loop.index %}{{line.origin}}{{line.content}}{#
 #}{% endfor %}
 {% endfor %}
-
+
{% endif %} {% endfor %} {% endmacro %} -- 2.38.4