We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Which configuration? Type: builtin Filetype: none Formatter: any remove_trailing_whitespace
remove_trailing_whitespace
Configuration:
require("formatter").setup { filetype = { ["*"] = { function() return require("formatter.filetypes.any").remove_trailing_whitespace() end } } }
Expected behavior
yo
in hex 796f 0a0a 0a
796f 0a0a 0a
Should be unchanged by the formatter
Actual behaviour
in hex 796f 0a0a
796f 0a0a
if you have another run of the formatter, then one more newline is removed
in hex 796f 0a
796f 0a
From here on new runs don't change anything
Additional context
I tried but couldn't find the reason after a quick check of the code. I feel this is an issue coming from the way the data from stdin is ingested.
The text was updated successfully, but these errors were encountered:
I've confirmed that I experience the same behavior. ➕
Sorry, something went wrong.
No branches or pull requests
Which configuration?
Type: builtin
Filetype: none
Formatter: any
remove_trailing_whitespace
Configuration:
Expected behavior
in hex
796f 0a0a 0a
Should be unchanged by the formatter
Actual behaviour
in hex
796f 0a0a
if you have another run of the formatter, then one more newline is removed
in hex
796f 0a
From here on new runs don't change anything
Additional context
I tried but couldn't find the reason after a quick check of the code.
I feel this is an issue coming from the way the data from stdin is ingested.
The text was updated successfully, but these errors were encountered: