Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/surface/formatter/phases/render.ex
Original file line number Diff line number Diff line change
Expand Up @@ -448,12 +448,12 @@ defmodule Surface.Formatter.Phases.Render do
# handle keyword lists, which will be stripped of the outer brackets per surface syntax sugar
"[#{expression}]"
|> Code.format_string!(locals_without_parens: [...: 1])
|> Enum.slice(1..-2//1)
|> to_string()
|> IO.iodata_to_binary()
|> String.slice(1..-2//1)
else
expression
|> Code.format_string!(locals_without_parens: [...: 1])
|> to_string()
|> IO.iodata_to_binary()
end

if length(Keyword.get(opts, :attributes, [])) > 1 do
Expand Down
Loading