Skip to content

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

Description

@nkezhaya

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions