use utils.parse.line_normalise in title.py

This commit is contained in:
jesopo 2019-10-31 10:27:42 +00:00
parent 10b5b19cff
commit 07c7afcf2e

View file

@ -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