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

Line separator in template is converted into CR+CR+LF (Windows) #21

Closed
ghost opened this issue Feb 25, 2017 · 1 comment
Closed

Line separator in template is converted into CR+CR+LF (Windows) #21

ghost opened this issue Feb 25, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 25, 2017

Thanks for the great plugin. I use vimcoder with gvim (Version 8.0, Windows 10).

When I put any template file in the storage directory and start writing, line separators in the template are converted to CR+CR+LF.

The Util.readFile method seems to have trouble. The method adds line separators when combining the text (line 93). It also replace "\n" with a line separator when returning the combined text (line 101). So, when used in Windows, the 93rd line converts any line separator to CR+LF and then the 101st line converts (CR+)LF into (CR+)CR+LF.

I tried to delete the replaceAll method from the 101st line and it seems working properly. Please kindly check it.

@chazmcgarvey
Copy link
Owner

Good catch, thanks for reporting!

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