JuliaFormatter.jl icon indicating copy to clipboard operation
JuliaFormatter.jl copied to clipboard

Whitespace removed outside of indices

Open KlausC opened this issue 1 year ago • 0 comments

When I format the following text, the blanks in the expression are removed. I expected that only to happen in index expressions inside the `[...].

julia> using JuliaFormatter

julia> s = "(A * B)[1]"
"(A * B)[1]"

julia> format_text(s) |> print
(A*B)[1]
julia> 

KlausC avatar Nov 02 '22 11:11 KlausC