Merge pull request #1201 from GLolol/web/strip-newlines

Web: normalize whitespace in titles
This commit is contained in:
Valentin Lorentz 2015-12-30 10:00:42 +01:00
commit 715f9cd52d

View File

@ -145,7 +145,7 @@ class Web(callbacks.PluginRegexp):
return None return None
parser.feed(text) parser.feed(text)
parser.close() parser.close()
title = ''.join(parser.data).strip() title = utils.str.normalizeWhitespace(''.join(parser.data).strip())
if title: if title:
return (target, title) return (target, title)
elif raiseErrors: elif raiseErrors: