Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiveEEX sigil "~L" does not switch to EEx-style indentation #536

Open
nkezhaya opened this issue Nov 13, 2020 · 1 comment
Open

LiveEEX sigil "~L" does not switch to EEx-style indentation #536

nkezhaya opened this issue Nov 13, 2020 · 1 comment

Comments

@nkezhaya
Copy link

Running ggVG= to indent the file leads to:

Actual

defmodule MyApp.Foo do
  use MyApp.Web, :live_component

  @impl true
  def mount(socket) do
    {:ok, socket}
  end

  @impl true
  def render(assigns) do
    ~L"""
    <div>
    <p>component!</p>
    </div>
    """
  end
end

Expected

defmodule MyApp.Foo do
  use MyApp.Web, :live_component

  @impl true
  def mount(socket) do
    {:ok, socket}
  end

  @impl true
  def render(assigns) do
    ~L"""
    <div>
      <p>component!</p>
    </div>
    """
  end
end
@alappe
Copy link

alappe commented Jan 21, 2021

I do have the same issue… :-/ Makes editing the LiveView files rather tedious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants