Browse Source

Merge branch 'fs#157-lowercase-title' into develop

develop
Jonathan Golder 7 years ago
parent
commit
5057aed0d3
  1. 7
      lib/redfam.py

7
lib/redfam.py

@ -284,6 +284,13 @@ class RedFamParser( RedFam ):
for link in heading.ifilter_wikilinks():
article = str( link.title ).strip()
# Short circuit empty links
if not article:
continue
# Make sure first letter is uppercase
article = article[0].upper() + article[1:]
# Split in title and anchor part
article = article.split("#", 1)
# Replace underscores in title with spaces

Loading…
Cancel
Save