From 70c40fd9792263dca5f7d7f0c45d450ff47052f2 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 30 Aug 2024 17:31:16 +0200 Subject: [PATCH] fix(wiki_article): ensure RTL text direction for ku-arab variant Added explicit setting for text direction to RTL in the HTML body for Kurdish Arabic variant articles. This change ensures proper display alignment for right-to-left languages, addressing layout issues arising from API response inconsistencies. --- src/wikimore/app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wikimore/app.py b/src/wikimore/app.py index de8e570..08ade2c 100644 --- a/src/wikimore/app.py +++ b/src/wikimore/app.py @@ -395,6 +395,9 @@ def wiki_article( # script but the direction returned in the API response is still LTR. if request.args.get("variant") == "ku-arab": rtl = True + body["dir"] = "rtl" + + processed_html = str(body) return render_template( "article.html",