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:
@@ -282,7 +282,7 @@ class RedFamParser( RedFam ):
|
|||||||
|
|
||||||
articlesList = []
|
articlesList = []
|
||||||
for link in heading.ifilter_wikilinks():
|
for link in heading.ifilter_wikilinks():
|
||||||
article = str( link.title )
|
article = str( link.title ).strip()
|
||||||
|
|
||||||
# Split in title and anchor part
|
# Split in title and anchor part
|
||||||
article = article.split("#", 1)
|
article = article.split("#", 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user