syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Weird formatting inside raw() for CLRF line endings

Open srikanthkyatham opened this issue 4 years ago • 4 comments

Hi

For files with CLRF line endings formatting inside raw(``) goes haywire, creates newlines after each line. If the line ending is changed to LF then the formatting is intact.

srikanthkyatham avatar Jun 13 '21 07:06 srikanthkyatham

Thanks for the report! Is there a specific reason you use CLRF line endings? Is this with Windows and VSCode?

IwanKaramazow avatar Jun 13 '21 07:06 IwanKaramazow

Hi

Yes, I use vscode on Windows 10.

srikanthkyatham avatar Jun 13 '21 18:06 srikanthkyatham

Changing to LF line ending can fix this problem.

Mng12345 avatar May 06 '22 01:05 Mng12345

Yes I figured it. Now I am using Mac.

srikanthkyatham avatar May 06 '22 04:05 srikanthkyatham

The rescript-lang/syntax repo is obsolete and will be archived soon. If this issue is still relevant, please reopen in the compiler repo (https://github.com/rescript-lang/rescript-compiler) or comment here to ask for it to be moved. Thank you for your contributions.

stale[bot] avatar May 28 '23 19:05 stale[bot]