This question already has an answer here:
Recently I discovered that, after years of thinking various software was adding a newline to the end of my files, it was actually Pluma (or Gedit - same difference) silently adding them all along. Currently I'm working on a website that will have lots of PHP includes, parsing data saved on disk and the likes, so it would make my life a lot easier to do away with the extra line added to the end of each file. As far as I can tell, there isn't a way to stop this behaviour.
I'd like to either get this sorted or find a text editor similar to Gedit without this issue. I don't really want to resort to using Notepad++ via Wine, but that may be an option. Terminal text editors are also a possibility but I'd rather use one with a GUI for anything more than minor edits to files.