From 83da6e241cae7e7ec304e361ecada6185a150338 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Sat, 31 Jan 2015 16:57:28 -0800 Subject: [PATCH] fix trailing comma in pathological cases --- gramps/plugins/textreport/indivcomplete.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/textreport/indivcomplete.py b/gramps/plugins/textreport/indivcomplete.py index a243d6bda..679f26513 100644 --- a/gramps/plugins/textreport/indivcomplete.py +++ b/gramps/plugins/textreport/indivcomplete.py @@ -826,6 +826,8 @@ class IndivCompleteReport(Report): return prior txt = Endnotes.cite_source(self.bibli, self._db, obj) + if not txt: + return prior if prior: # translators: needed for Arabic, ignore otherwise txt = self._('%(str1)s, %(str2)s') % {'str1':prior, 'str2':txt}