Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Line width not respected for the following code #816

Open
atbug opened this issue Mar 1, 2024 · 2 comments
Open

Line width not respected for the following code #816

atbug opened this issue Mar 1, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@atbug
Copy link

atbug commented Mar 1, 2024

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.

@domluna
Copy link
Owner

domluna commented Mar 1, 2024

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

@atbug
Copy link
Author

atbug commented Mar 1, 2024

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

The code shown above is the output.

@domluna domluna added the bug Something isn't working label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants