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
1 changed files with 1 additions and 1 deletions

View File

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