forked from PrivateCoffee/wikimore
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:
parent
1bbb37be7e
commit
70c40fd979
1 changed files with 3 additions and 0 deletions
|
@ -395,6 +395,9 @@ def wiki_article(
|
||||||
# script but the direction returned in the API response is still LTR.
|
# script but the direction returned in the API response is still LTR.
|
||||||
if request.args.get("variant") == "ku-arab":
|
if request.args.get("variant") == "ku-arab":
|
||||||
rtl = True
|
rtl = True
|
||||||
|
body["dir"] = "rtl"
|
||||||
|
|
||||||
|
processed_html = str(body)
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
"article.html",
|
"article.html",
|
||||||
|
|
Loading…
Reference in a new issue