Remove leading or trailing spaces in articles
Some articles contain spaces between title and anchor part which will be stripped now Related Task: [FS#159](https://fs.golderweb.de/index.php?do=details&task_id=159)
This commit is contained in:
@@ -297,6 +297,10 @@ class RedFamParser( RedFam ):
|
||||
article[0] = article[0].replace("_", " ")
|
||||
|
||||
if len(article) > 1:
|
||||
# Strip both parts to prevent leading/trailing spaces
|
||||
article[0] = article[0].strip()
|
||||
article[1] = article[1].strip()
|
||||
|
||||
# other way round, replace spaces with underscores in anchors
|
||||
article[1] = article[1].replace(" ", "_")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user