Skip to content
New issue

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

When endOfLine option set to 'crlf', ^M appear at the end of each line #329

Open
stchristian opened this issue Jun 7, 2022 · 0 comments

Comments

@stchristian
Copy link

stchristian commented Jun 7, 2022

Do you want to request a feature or report a bug?

bug

What is the current/expected behavior?

This only happens on Windows machine.
Current behaviour: endOfLine is set to 'crlf', after running :Prettier command, ^M appear at the end of each line.
According to a hex editor file endings are CRCRLF, which IMO causes the problem.

Expected: When I set the endOfLine option to 'crlf' and I format a file, I don't want to see ^M at the end of each line. Opening the file with hex editor should result in CRLF line endings

What version of vim-prettier are you using - (output of :PrettierVersion) ?
1.0.0-beta

What version of prettier are you using - (output of :PrettierCliVersion) ?

2.6.2

What is your prettier executable path - (output of :PrettierCliPath) ?

prettier

Did this work in previous versions of vim-prettier and/or prettier ?

Don't have experience, this is my first time using the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant