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

Anton Khorev notifications at github.com
Fri Mar 21 22:02:35 UTC 2025


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

> This would not be useful. Each paragraph needs to have dir="auto" separately.

If you want a single comment with different language paragraphs, then looks like yes, you need `dir` on paragraphs.

> Thanks for the tip though, I will look into how to do that...

Something like this:
```erb
          <div class="mx-2 comment_text">
            <%= comment.body.to_html %>
          </div>
```

```css
.comment_text {
  p {
    text-align: start;
  }
}
```

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

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


More information about the rails-dev mailing list