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 return -1, None
if page.data.title: if page.data.title:
title = page.data.title.text.replace("\n", " ").replace( title = utils.parse.line_normalise(page.data.title.text)
"\r", "").replace(" ", " ").strip()
if not title: if not title:
return -3, None return -3, None