From b9b407a737b697287e32377fec8d23d573e77b60 Mon Sep 17 00:00:00 2001 From: Kumi Date: Tue, 16 Jul 2024 08:26:34 +0200 Subject: [PATCH] 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. --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 1e129a6..c80c3f3 100644 --- a/app.py +++ b/app.py @@ -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,