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

Line width not respected for the following code

Open atbug opened this issue 1 year ago • 2 comments

function reorganize_hopping_by_distance()
    for i in 1:foo
        for j in 1:bar
            distances = [
                norm(lattice * (R + wannier_centers[m] - wannier_centers[n] + supercell_lattice * supercell)) for supercell in supercells_to_search
            ]
        end
    end
end

JuliaFormatter refuses to breakdown the fifth line.

atbug avatar Mar 01 '24 00:03 atbug

what are the format options and is the above the original source being formatted or the output?

domluna avatar Mar 01 '24 02:03 domluna

format_file("this_file.jl", margin=112)

The code shown above is the output.

atbug avatar Mar 01 '24 04:03 atbug