Skip to content

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

@nkezhaya

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions