Library Editor - Safe with more spaces

Hi there,

I just drew my first symbol (in linear) to be added to the repo.

When safing the library and looking into the changes with git diff I recognized a lot of changes scattered around the whole file linear.lib, which confused me a bit.

When looking in detail into these changes, I saw that there was just sometimes one space more inserted.
Is there a specific reason for this?

For the commit/pull-request I just copied my real change and copied it back into the lib-file.
Is there any reason, error or undesired behaviour of the library-editor?

Attached my git diff after opening the libary and re-safing it again (just opened the setting of one pin to trigger the safe-dialog; no real changes made).

Best regards
Marcolinear.lib.diff (13.6 KB)

I’ve noticed this problem as well. Library editor moves line around for no reason and they are picked up by git as difference.

I deal with it by staging only my changes using hunk selection, then discarding/reverting unstaged changes, then I commit. This can be a little tricky using command line tools but its actually very easy using a gui. I use emacs+magit. You can find some more information on this stackoverflow question if you are interested.

I believe this extra space issue has been noted by the devs and a fix will made, might be in nightlies already.

Kind of great to know, that this problem is not only related to me.
Gotta dig into git some more (again)!

Thanks!