vscode-cmantic icon indicating copy to clipboard operation
vscode-cmantic copied to clipboard

Weird double lines when using CRLF line endings

Open sewbacca opened this issue 2 years ago • 0 comments

When using \r\n line endings, a lot of excess lines appear. It turns out, that there is a bug in the formatting function, adding \t in between and after \r\n line endings. This results in vscode replacing \r and \n into \r\n respectivly, so the total replacement will be \r\n\t\r\n\t instead of \r\n\t I have created a pull-request, as a proposal to fix this issue.

sewbacca avatar May 04 '22 00:05 sewbacca