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

Nitai Sasson notifications at github.com
Fri Mar 21 21:50:18 UTC 2025


NeatNit left a comment (openstreetmap/openstreetmap-website#5835)

> If you do this, you'd also set `dir=auto` on the entire comment.

This would not be useful. Each paragraph needs to have `dir="auto"` separately. Different paragraphs in the same comment can have a different direction. This is why it needs to be an argument to `simple_format`.

Thanks for the tip though, I will look into how to do that... Might not have to be in the same PR though. I don't want this PR to grow to the size of #3429 handling each case separately. Perhaps your suggestion should be added there instead. As I said, even without `text-align`, just having `dir="auto"` already offers the most important benefit by correcting the placement of punctuation and mixed directionality text.

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

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


More information about the rails-dev mailing list