Skip to content

--blank-lines-around-definitions is ignored when using stdin/stdout mode #275

Description

@brady444

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions