remove blockquote + update librarian
authorJan Szejko <janek37@gmail.com>
Wed, 28 Nov 2018 15:42:41 +0000 (16:42 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 29 Nov 2018 12:00:11 +0000 (13:00 +0100)
lib/librarian
src/catalogue/models/book.py

index 9d095f2..594534b 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 9d095f2d49f51ddc5421a463a0dd6c6e0be2d057
+Subproject commit 594534b26b77c2f83a44f3e8da4a52b29e0b9d7c
index b71926e..dbbee78 100644 (file)
@@ -754,7 +754,10 @@ class Book(models.Model):
     def fragment_data(self):
         fragment = self.choose_fragment()
         if fragment:
     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('</?blockquote[^>]*>', '', fragment.get_short_text()),
+            }
         else:
             return None
 
         else:
             return None