Strip whitespace from image text.

This commit is contained in:
Bastian Kleineidam 2013-12-04 18:07:13 +01:00
parent 0378c9d855
commit 7343932a5a

View file

@ -127,7 +127,7 @@ class _BasicScraper(object):
if self.textSearch: if self.textSearch:
text = fetchText(url, data, self.textSearch) text = fetchText(url, data, self.textSearch)
if text: if text:
text = unescape(text) text = unescape(text).strip()
else: else:
text = None text = None
return ComicStrip(self.getName(), url, imageUrls, self.namer, self.session, text=text) return ComicStrip(self.getName(), url, imageUrls, self.namer, self.session, text=text)