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.
This commit is contained in:
Kumi 2024-08-30 17:31:16 +02:00
parent 1bbb37be7e
commit 70c40fd979
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -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",