Browse Source

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)
develop
Jonathan Golder 7 years ago
parent
commit
d9b4fcc0bd
  1. 2
      lib/redfam.py

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

Loading…
Cancel
Save