mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +01:00
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
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user