When I run mix format
on this code:
defmodule FormatExample do
@some_module_attribute %{}
def format_this do
foo = @some_module_attribute |> Map.put("bar", "blargh") |> some_function([{"baz", [:something_long_enough]}])
end
end
I get this output:
defmodule FormatExample do
@some_module_attribute %{}
def format_this do
foo =
@some_module_attribute |> Map.put("bar", "blargh")
|> some_function([{"baz", [:something_long_enough]}])
end
end
I would perfer if there was a line break for each pipe, like so:
defmodule FormatExample do
@some_module_attribute %{}
def format_this do
foo =
@some_module_attribute
|> Map.put("bar", "blargh")
|> some_function([{"baz", [:something_long_enough]}])
end
end
Is this possible?