From a946fa8f0dd12c894d115710b60fbafda4e8feb7 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sat, 29 Jun 2013 18:21:38 +0200 Subject: [PATCH] boobot: Rewrite any kind of space (newline, tab) --- contrib/boobot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/boobot.py b/contrib/boobot.py index 128ede60..f4fc32f3 100755 --- a/contrib/boobot.py +++ b/contrib/boobot.py @@ -149,7 +149,7 @@ class BoobotBrowser(StandardBrowser): h = self.get_document(r, parser='lxml', encoding=encoding) for title in h.xpath('//head/title'): title = to_unicode(title.text_content()).strip() - title = ' '.join(title.splitlines()) + title = ' '.join(title.split()) if urlparse.urlsplit(url).netloc.endswith('twitter.com'): for title in h.getroot().cssselect('.permalink-tweet .tweet-text'): title = to_unicode(title.text_content()).strip()