[openstreetmap/openstreetmap-website] add dir="auto" to paragraphs of formatted text (PR #5835)

Anton Khorev notifications at github.com
Fri Mar 21 21:25:26 UTC 2025


@AntonKhorev commented on this pull request.



> @@ -86,7 +86,7 @@ def linkify(text, mode = :urls)
 
   class HTML < Base
     def to_html
-      linkify(sanitize(simple_format(self)))
+      linkify(sanitize(simple_format(self, dir: "auto")))

[This helper](https://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#method-i-simple_format) is not called directly. Look at `def simple_format(text)` above in this file, it doesn't have extra arguments.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5835#pullrequestreview-2707291984
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/5835/review/2707291984 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250321/5166f633/attachment.htm>


More information about the rails-dev mailing list