prettier-plugin-eex icon indicating copy to clipboard operation
prettier-plugin-eex copied to clipboard

An eex do ... end within inline content is incorrectly formatted

Open jonleighton opened this issue 4 years ago • 0 comments

This input:

<%= link to: "foo" do %>
  bla
<% end %> .

Formats to this:

<%= link to: "foo" do %>
  bla
<% end %>
.

But this input (note lack of space before .):

<%= link to: "foo" do %>
  bla
<% end %>.

Is incorrectly formatted to:

<%= link to: "foo" do %>
  bla </eext1
>.

jonleighton avatar Jun 01 '21 02:06 jonleighton