]> git.openstreetmap.org Git - rails.git/commitdiff
add dir="auto" to paragraphs of formatted text
authorNitai Sasson <github.com.nr568@sl.neatnit.net>
Fri, 21 Mar 2025 19:37:46 +0000 (21:37 +0200)
committerTom Hughes <tom@compton.nu>
Sun, 23 Mar 2025 15:57:47 +0000 (15:57 +0000)
lib/rich_text.rb

index 84e695c6e75a3be7639bc97dd68e898ffd6dc7b7..c20f973b12286164b56fcfc9f8eb47ac2fe0645d 100644 (file)
@@ -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)