From adbfb2fee1a01bf97a339ca80248b82713e59729 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Wed, 28 Nov 2018 16:42:41 +0100 Subject: [PATCH] remove blockquote + update librarian --- lib/librarian | 2 +- src/catalogue/models/book.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/librarian b/lib/librarian index 9d095f2d4..594534b26 160000 --- a/lib/librarian +++ b/lib/librarian @@ -1 +1 @@ -Subproject commit 9d095f2d49f51ddc5421a463a0dd6c6e0be2d057 +Subproject commit 594534b26b77c2f83a44f3e8da4a52b29e0b9d7c diff --git a/src/catalogue/models/book.py b/src/catalogue/models/book.py index b71926ec3..dbbee782b 100644 --- a/src/catalogue/models/book.py +++ b/src/catalogue/models/book.py @@ -754,7 +754,10 @@ class Book(models.Model): def fragment_data(self): fragment = self.choose_fragment() if fragment: - return {'title': fragment.book.pretty_title(), 'html': fragment.get_short_text()} + return { + 'title': fragment.book.pretty_title(), + 'html': re.sub(']*>', '', fragment.get_short_text()), + } else: return None -- 2.20.1