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)
This commit is contained in:
2017-09-02 22:06:30 +02:00
parent 22ff78ea98
commit d9b4fcc0bd

View File

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