From d9b4fcc0bdf1489cf3b3203354d0d0866fb0ac99 Mon Sep 17 00:00:00 2001 From: Jonathan Golder Date: Sat, 2 Sep 2017 22:06:30 +0200 Subject: [PATCH] Strip spaces before adding articles to redfam Some article links have surounding spaces in their linktext. Remove them before adding article to RedFam to have a cannonical title Related Task: [FS#155](https://fs.golderweb.de/index.php?do=details&task_id=155) --- lib/redfam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redfam.py b/lib/redfam.py index 6a44d40..6a9402c 100644 --- a/lib/redfam.py +++ b/lib/redfam.py @@ -282,7 +282,7 @@ class RedFamParser( RedFam ): articlesList = [] for link in heading.ifilter_wikilinks(): - article = str( link.title ) + article = str( link.title ).strip() # Split in title and anchor part article = article.split("#", 1)