From beb5e1f11e75b64e445c850ebbe9b5065a679cbb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 1 Nov 2020 11:59:51 -0800 Subject: [PATCH] Show empty string, not "None" for books with no text --- bookwyrm/templatetags/fr_display.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templatetags/fr_display.py b/bookwyrm/templatetags/fr_display.py index 0595ff522..52cb3c47e 100644 --- a/bookwyrm/templatetags/fr_display.py +++ b/bookwyrm/templatetags/fr_display.py @@ -116,7 +116,7 @@ def get_book_description(book): def text_overflow(text): ''' dont' let book descriptions run for ages ''' if not text: - return + return '' char_max = 500 if text and len(text) < char_max: return text