fix: replace underscores with spaces in article titles

Updated article titles to replace underscores with spaces when rendering the wiki article. Enhances readability and ensures a more user-friendly display format.
This commit is contained in:
Kumi 2024-07-16 08:26:34 +02:00
parent d4c60d98d9
commit b9b407a737
Signed by: kumi
GPG key ID: ECBCC9082395383F

2
app.py
View file

@ -169,7 +169,7 @@ def wiki_article(project, lang, title):
processed_html = str(soup)
return render_template(
"article.html",
title=title,
title=title.replace("_", " "),
content=processed_html,
wikimedia_projects=app.wikimedia_projects,
languages=app.languages,