-
Notifications
You must be signed in to change notification settings - Fork 32
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
Automatic EOL conversion is needed. #12
Comments
Thanks for your implementation. I will probably add code to the saveSnippet() function to ensure that all the snippets are using \n when they are in database. (the "transformation to \n" in importSnippet() is not perfect and need rewrite actually) Also, thanks for the replaceAll function!! I have tried to write a function like this and don't know how to write it. So I end up changing the char* to string and change it back..............I think I can use this replaceAll() function in many other places. |
I'm happy to hear that it's useful :D |
Fingertext 0.5.44 is released and this issue should be fixed in this new version |
Confirmed. Thank you very much ^_^ |
Fingertext doesn't consider current document's EOL mode, so snippet insertion may cause mixed-EOLs problem.
Below is a quick patch to convert LF-ended snippets into current document's EOL at insertion time.
It doesn't check whether a snippet is CRLF-ended or not, so additional code is needed to make sure an user-created snippets always have LF-ended. (I can see that every imported snippets are converted to LF)
The text was updated successfully, but these errors were encountered: