diff options
| author | 2019-10-31 10:27:42 +0000 | |
|---|---|---|
| committer | 2019-10-31 10:27:42 +0000 | |
| commit | 07c7afcf2e156f54b2bcca680716dbc1331d761c (patch) | |
| tree | e958d7a3831f4a6b2883591409caae6e6eeb2562 /modules/title.py | |
| parent | don't try to parse empty <title>s (diff) | |
| signature | ||
use utils.parse.line_normalise in title.py
Diffstat (limited to 'modules/title.py')
| -rw-r--r-- | modules/title.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/title.py b/modules/title.py index 6956e7d9..4a69e96d 100644 --- a/modules/title.py +++ b/modules/title.py @@ -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 |
