From 6a549968b5cda04b5f1e2e3436de0819e23bce20 Mon Sep 17 00:00:00 2001 From: "Gerber, Mike" Date: Tue, 10 May 2022 17:47:38 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Produce=20a=20text=20attribute?= =?UTF-8?q?=20even=20if=20the=20attribute=20has=20no=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qurator/modstool/lib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qurator/modstool/lib.py b/qurator/modstool/lib.py index 4d00510..9a158e1 100644 --- a/qurator/modstool/lib.py +++ b/qurator/modstool/lib.py @@ -55,7 +55,8 @@ class TagGroup: for e in self.group: if t != '': t += separator - t += e.text + if e.text: + t += e.text return t def text_set(self):