Allow the author template to return an empty result

This commit is contained in:
Kovid Goyal 2026-01-04 22:09:27 +05:30
parent 58409ed3c0
commit 3aaa938481
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1456,7 +1456,7 @@ class BookshelfView(MomentumScrollMixin, QAbstractScrollArea):
mi = self.dbref().get_proxy_metadata(book_id)
rslt = mi.formatter.safe_format(
self.template_author, mi, TEMPLATE_ERROR, mi, column_name='authors', template_cache=self.template_cache)
return rslt or _('Unknown')
return rslt or ''
# Miscellaneous methods