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

`indent_submodule = true` fails to have an effect

Open nsajko opened this issue 5 months ago • 0 comments

This is with v2.1.2 of JuliaFormatter.

julia> using JuliaFormatter
 
julia> s = """
       module A
       module B
       c = 7
       end
       end
       """
"module A\nmodule B\nc = 7\nend\nend\n"
 
julia> print(format_text(s; indent_submodule = true))
module A
module B
    c = 7
end
end

Expected output:

module A
    module B
        c = 7
    end
end

nsajko avatar May 01 '25 01:05 nsajko