Trim whitespace from slot

This commit is contained in:
Wout De Puysseleir 2023-03-05 10:46:50 -08:00
parent caf7db6e7a
commit 4e3dd6960c
No known key found for this signature in database
GPG key ID: 3DE9371B50FEC46A

View file

@ -69,6 +69,7 @@ defmodule LiveSvelte do
"""
|> Phoenix.HTML.Safe.to_iodata()
|> List.to_string()
|> String.trim()
end
defp ssr_render(name, props, slots \\ nil)