From 9385b26b0c173828699e414544671f421bbff355 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 20 Jan 2016 00:32:14 +0100 Subject: [PATCH] Strip whitespace start/end from page title. --- plomlombot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.30.2