-
Notifications
You must be signed in to change notification settings - Fork 31
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
Trailing carriage returns are removed on exit #168
Comments
Yes, I know but didn't bother me. I always use the https://lintalist.github.io/#c-plugin I'll have a look at how I can keep them in and either set that as default or as optional "keep trailing white space" - might take a little while before I get to it. |
Thanks!
Mike
…On Tue, 04 Aug 2020 12:00:14 -0700, Lintalist ***@***.***> wrote:
Yes, I know but didn't bother me. I always use the https://lintalist.github.io/#c-plugin [[c=\n|2]] for example.
I'll have a look at how I can keep them in and either set that as default or as optional "keep trailing white space" - might take a little while before I get to it.
--
You are receiving this because you authored the thread.
Reply to this email directly, <#168 (comment)>view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/ACSJGRWJ5J2EYF2U572SA4TR7BLD5ANCNFSM4PTRSHLQ>unsubscribe.
|
I think this may be the solution, only briefly tested, so your mileage may vary.
It should now keep leading and trailing spaces & new lines in bundles even after restarting. If this works for you - I'll try it out for a few days as well - I'll make it optional behavior and include it in the next release. Edit: new file |
Thank you.
When I run it, it is popping up with dialog windows containing two of my snips, attached-- not sure why.
Mike
…On Fri, 14 Aug 2020 10:59:09 -0700, Lintalist ***@***.***> wrote:
I think this may be the solution, only briefly tested, so your mileage may vary.
- backup your bundles or your entire lintalist folder so you don't loose anything :)
- download ObjectBundles.ahk below and copy it to include\ObjectBundles.ahk replacing the file that is there.
- (Re)start lintalist
It should now keep leading and trailing spaces & new lines in bundles even after restarting. If this works for you - I'll try it out for a few days as well - I'll make it optional behavior and include it in the next release.
<https://github.com/lintalist/lintalist/files/5076209/ObjectBundles.zip>ObjectBundles.zip
--
You are receiving this because you authored the thread.
Reply to this email directly, <#168 (comment)>view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/ACSJGRWJ6UWMMEHSBZNA7X3SAV3O3ANCNFSM4PTRSHLQ>unsubscribe.
|
Also showing "\n" in the paste field.
Not good!
…On Fri, 14 Aug 2020 10:59:09 -0700, Lintalist ***@***.***> wrote:
I think this may be the solution, only briefly tested, so your mileage may vary.
- backup your bundles or your entire lintalist folder so you don't loose anything :)
- download ObjectBundles.ahk below and copy it to include\ObjectBundles.ahk replacing the file that is there.
- (Re)start lintalist
It should now keep leading and trailing spaces & new lines in bundles even after restarting. If this works for you - I'll try it out for a few days as well - I'll make it optional behavior and include it in the next release.
<https://github.com/lintalist/lintalist/files/5076209/ObjectBundles.zip>ObjectBundles.zip
--
You are receiving this because you authored the thread.
Reply to this email directly, <#168 (comment)>view it on GitHub, or <https://github.com/notifications/unsubscribe-auth/ACSJGRWJ6UWMMEHSBZNA7X3SAV3O3ANCNFSM4PTRSHLQ>unsubscribe.
|
My bad, left in debug MsgBox. Updated it above. You will also notice that other snippets are now messed up which I didn't catch with my test bundle. So be sure to close lintalist, copy back your bundles from your backup, and update the Should work better I hope. 🤞 |
Still messy. The program seems to have added leading and trailing spaces to every item. It is also still showing "\n" in the "Paste" column of the main display. |
Are you sure you closed lintalist, copied your backup bundles back, copied the new ahk file and THEN restarted lintalist? The previous version messaged up snippets. It works here as far as I can tell with snippets with no part2 it will no longer show Ah well, failed experiment it seems. Using |
Yep, just tried it again; screenshot of the "\n" is available. When I reversed the procedure, everything is the way it was earlier. Thanks for trying. |
I think that is because there is now an actual new line in those part 2s, so if you edit one and remove any trailing ones it should no long display it for those snippets. Not a solution of course. |
I didn't put the newlines there. They appeared. The leading and trailing spaces also still remain in the Paste items. These are bugs in the code. When I revert, those problems disappear. |
Trailing carriage returns are removed from text to paste when Lintalist exits.
The text was updated successfully, but these errors were encountered: