changeset 0555581357e4 in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset;node=0555581357e4
description:
        Strip block quote
diffstat:

 app.py |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c739e5711281 -r 0555581357e4 app.py
--- a/app.py    Wed Nov 27 10:43:52 2019 +0100
+++ b/app.py    Sun Dec 08 20:34:06 2019 +0100
@@ -322,7 +322,7 @@
     block = html.fromstring(str(content)).find('blockquote')
     for box in block.find_class('lightbox-wrapper'):
         box.drop_tree()
-    return block.text_content()
+    return block.text_content().strip()
 
 
 @app.route('/events')

Reply via email to