Hi friends, running into a weird bug when using a new live view project
in my live.html.leex
file, if i format the code like so:
<main role="main" class="container">
<p
class="alert alert-info"
role="alert"
phx-click="lv:clear-flash"
phx-value-key="info"
>
<%= live_flash(@flash, :info) %>
</p>
<%= @inner_content %>
</main>
My alert box will render unconditionally (the blue box)
if I change the code back to the default formatting that came with the new project:
<main role="main" class="container">
<p class="alert alert-info" role="alert"
phx-click="lv:clear-flash"
phx-value-key="info"><%= live_flash(@flash, :info) %></p>
<%= @inner_content %>
</main>
the alert box disappears!
very confused. If this is a bug, can somebody lead me to where I might report it?
I have tried this with both LF and CRLF set
the most minimal reproduction of this bug is putting a new line between the p
tag and the <%=
tag like so:
<main role="main" class="container">
<p class="alert alert-info" role="alert"
phx-click="lv:clear-flash"
phx-value-key="info">
<%= live_flash(@flash, :info) %></p>
<%= @inner_content %>
</main>