Given this file test.gd:
func test() -> void:
print("test")
func test2() -> void:
print("test2")
gdscript-formatter --blank-lines-around-definitions 1 formats it to this, as expected:
func test() -> void:
print("test")
func test2() -> void:
print("test2")
But using stdin/stdout mode, it ignores the flag:
> bat test.gd | gdscript-formatter --blank-lines-around-definitions 1
(two lines between instead of one as expected)
func test() -> void:
print("test")
func test2() -> void:
print("test2")
Other flags might have the same issue, I haven't tested them.
Given this file
test.gd:gdscript-formatter --blank-lines-around-definitions 1formats it to this, as expected:But using stdin/stdout mode, it ignores the flag:
(two lines between instead of one as expected)
Other flags might have the same issue, I haven't tested them.