Skip to content

Trailing whitespace gets moved to previous line #646

Closed
@romamik

Description

@romamik

Describe the bug

Trailing whitespace gets moved to previous line.
Is not working with v 1.12, but is working perfectly in version used on https://haxecheckstyle.github.io/haxe-formatter-docs/.

Input file

class Main {
static function main() {
trace(1);

trace(2);
}
}

Broken output

class Main {
→static function main() {
→→trace(1);→→

→→trace(2);
→}
}

Expected output

class Main {
→static function main() {
→→trace(1);
→→
→→trace(2);
→}
}

Optional: hxformat.json

{
	"indentation": {
		"trailingWhitespace": true
	}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions