From: Christian Heller Date: Tue, 19 Jan 2016 23:32:14 +0000 (+0100) Subject: Strip whitespace start/end from page title. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/test?a=commitdiff_plain;h=9385b26b0c173828699e414544671f421bbff355;p=plomlombot-irc.git Strip whitespace start/end from page title. --- diff --git a/plomlombot.py b/plomlombot.py index 767d1f7..2b59a0b 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -120,7 +120,7 @@ def lineparser_loop(io, nickname): continue title = bs4.BeautifulSoup(r.text).title if title: - notice("PAGE TITLE FOR URL: " + title.string) + notice("PAGE TITLE FOR URL: " + title.string.strip()) else: notice("PAGE HAS NO TITLE TAG")