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

Why is there a blank line added at the end of every file?

Open JohannesNaegele opened this issue 1 year ago • 4 comments

Let's say I have a file foo.jl:

a = 1

then this gets turned into (given an empty .JuliaFormatter.toml):

a = 1

Is that intended behaviour?

JohannesNaegele avatar Sep 12 '23 09:09 JohannesNaegele

what options are you formatting with?

domluna avatar Oct 04 '23 02:10 domluna

what options are you formatting with?

with an empty .toml and format(".")

JohannesNaegele avatar Nov 15 '23 10:11 JohannesNaegele

What's exactly the content of the formatted file? a = 1\n or a = 1\n\n? If that is the former, it should be intended behavior.

hyrodium avatar Nov 15 '23 11:11 hyrodium

What's exactly the content of the formatted file? a = 1\n or a = 1\n\n? If that is the former, it should be intended behavior.

Screenshot 2023-11-19 at 00 36 01

JohannesNaegele avatar Nov 18 '23 23:11 JohannesNaegele