mirror of https://github.com/Mikaela/Limnoria.git
Merge pull request #1201 from GLolol/web/strip-newlines
Web: normalize whitespace in titles
This commit is contained in:
commit
715f9cd52d
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue