In Edit -> Preferences -> Files -> Saving files there is an option named "Strip trailing spaces and tabs". Even if I disable it, Geany still strips spaces at the end of every line everytime a I save a file. I am using Geany 2.0 for Windows but Geany 1.36 for Windows was exactly the same.
Both 1.36 and 2.0 work for me on Linux Mint.
Yes, in Linux it works correctly. I have tried Geany 1.38 in Debian and there isn't the issue. It seams only a Windows port problem!
Closed #3942 as completed.
I am really sorry, looking at the source code I found that I had misunderstood the settings.
I was inside a project and I didn't know that the "Strip trailing spaces and tabs" option for projects must be set in Project -> Properties. I thought the the Edit -> Preferences -> Files settings was global and always valid, but the Project -> Properties settings overwrites the others.
So, no bugs at all. I hope this can help someone else.
github-comments@lists.geany.org