ginqi7 / leetcode-emacs

an emacs plugin to write leetcode programs
37 stars 5 forks source link

Adds the ^M character with all the new line instances in the buffer due to improper line-ending defined #3

Closed anmoljagetia closed 5 years ago

anmoljagetia commented 5 years ago

image

This is what I am seeing. Maybe we can handle this by adding a filter for this, right before the buffer is populated?

anmoljagetia commented 5 years ago

BTW, are you on windows when you were developing this package?

ginqi7 commented 5 years ago

Thanks for your PR. I didn't merge it, but I fixed this bug. 1183c25cbb4f0618af64c5d137092294f501665c

I deleted ^M in the leetcode question description, before displaying it.

I wrote this package on a Linux system. This problem should come from 'leetcode-cli', which is a cross-platform tool.

Thanks for your suggestion.

anmoljagetia commented 5 years ago

Thanks a lot for being so responsive! This is great. I think your way is better than mine, so there is that as well