From fc8c7403cdae47cc9fd4d21f5d9daaa5b892ea1a Mon Sep 17 00:00:00 2001 From: Nitai Sasson Date: Fri, 21 Mar 2025 21:37:46 +0200 Subject: [PATCH] add dir="auto" to paragraphs of formatted text --- lib/rich_text.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rich_text.rb b/lib/rich_text.rb index 84e695c6e..c20f973b1 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -68,7 +68,7 @@ module RichText protected def simple_format(text) - SimpleFormat.new.simple_format(text) + SimpleFormat.new.simple_format(text, :dir => "auto") end def sanitize(text) -- 2.39.5