Respect whitespace in plain text output (#1841)

This commit is contained in:
Jonatan Kłosko 2023-03-31 21:54:11 +01:00 committed by GitHub
parent 58a3d1fa20
commit a020ea85c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -51,7 +51,7 @@ defmodule LivebookWeb.Output do
assigns = %{id: id, text: text}
~H"""
<div id={@id} class="text-gray-700"><%= @text %></div>
<div id={@id} class="text-gray-700 whitespace-pre-wrap"><%= @text %></div>
"""
end