use utils.parse.line_normalise in title.py
This commit is contained in:
parent
10b5b19cff
commit
07c7afcf2e
1 changed files with 1 additions and 2 deletions
|
@ -58,8 +58,7 @@ class Module(ModuleManager.BaseModule):
|
|||
return -1, None
|
||||
|
||||
if page.data.title:
|
||||
title = page.data.title.text.replace("\n", " ").replace(
|
||||
"\r", "").replace(" ", " ").strip()
|
||||
title = utils.parse.line_normalise(page.data.title.text)
|
||||
if not title:
|
||||
return -3, None
|
||||
|
||||
|
|
Loading…
Reference in a new issue