]> jfr.im git - erebus.git/commitdiff
urls: .strip title
authorJohn Runyon <redacted>
Mon, 4 Sep 2023 00:22:35 +0000 (18:22 -0600)
committerJohn Runyon <redacted>
Mon, 4 Sep 2023 00:22:35 +0000 (18:22 -0600)
modules/urls.py

index 80ae1ee8328dffeb896febd316827d1976b95a11..f2df04f377bce3d204505c62b0eb7146d1e11c7d 100644 (file)
@@ -267,7 +267,7 @@ def goturl(url):
                        try:
                                soup = BeautifulSoup(responsebody)
                                if soup.title:
-                                       output.append('Title: ' + unescape('%s' % (soup.find('title').string)))
+                                       output.append('Title: ' + unescape('%s' % (soup.find('title').string.strip())))
                                else:
                                        output.append('No title')
                        except Exception as e: