From 241179665d5a5749b139b1290c12a6ba75a8ad67 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 16 Oct 2010 15:03:02 +0200 Subject: [PATCH] strip description --- weboob/backends/gazelle/pages/torrents.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/backends/gazelle/pages/torrents.py b/weboob/backends/gazelle/pages/torrents.py index 47e43d4b..5ea647f5 100644 --- a/weboob/backends/gazelle/pages/torrents.py +++ b/weboob/backends/gazelle/pages/torrents.py @@ -163,10 +163,10 @@ class TorrentsPage(BasePage): title_t = box.cssselect('div.head') if title_t: - title = title_t[0].find('strong').text + title = title_t[0].find('strong').text.strip() body_t = box.cssselect('div.body') if body_t: - body = html2text(self.browser.parser.tostring(body_t[0])) + body = html2text(self.browser.parser.tostring(body_t[0])).strip() if title and body: if torrent.description is NotLoaded: