You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmodule Debug.ConcatenateHeredocs do
@foo "Two"
@moduledoc ~S"""
One
""" <>
~s"""
#{@foo}
""" <>
~S"""
Three
"""
def foo() do
moduledoc =
~S"""
One
""" <>
~s"""
#{@foo}
""" <>
~S"""
Three
"""
end
end
mix format will wrongly indent the concatenated heredocs that are assigned to a the @moduledoc attribute
The text was updated successfully, but these errors were encountered:
eksperimental
changed the title
Bug in formatter with concatenated heredocs when assigning attributes
Bug in formatter with concatenated heredocs when assigned to attributes
Apr 1, 2021
Environment
Current behavior
given the code
mix format
will wrongly indent the concatenated heredocs that are assigned to a the @moduledoc attributeExpected behavior
Indent the attribute value as it does with the variable.
The text was updated successfully, but these errors were encountered: