Skip to content
New issue

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

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

Already on GitHub? # to your account

File should not start with whitespace #1563

Closed
paul-dingemans opened this issue Jul 31, 2022 · 2 comments · Fixed by #1682
Closed

File should not start with whitespace #1563

paul-dingemans opened this issue Jul 31, 2022 · 2 comments · Fixed by #1682

Comments

@paul-dingemans
Copy link
Collaborator

Expected Behavior

If the first line of a file is indented than the indentation should be removed without introducing a line break.

     // Some comment or code element

Observed Behavior

The code above is formatted as:


// Some comment or code element

Your Environment

  • Version of ktlint used: 0.46.1
@paul-dingemans
Copy link
Collaborator Author

Solved by #1682

@paul-dingemans
Copy link
Collaborator Author

Closed by #1682

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant