Skip to content

Commit 032c9e0

Browse files
Render bio text with blank lines (#1143)
1 parent f5f74f5 commit 032c9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/users/bio.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<div class="grid-col-12 margin-top-4">
6060
<h3 class="font-sans-md text-bold">About</h3>
6161
<div class="line-height-sans-3">
62-
<%= simple_format(@user.bio) %>
62+
<%= @user.bio.split(/\r?\n\r?\n/).map { |paragraph| simple_format(paragraph.strip, {}, sanitize: true) }.join("<br>").html_safe %>
6363
</div>
6464
</div>
6565
<% end %>

0 commit comments

Comments
 (0)