As the output provided by James Plate (https://bugs.launchpad.net/ubuntu/+source/gedit- plugins/+bug/995747/comments/5) suggests, process_read_buffer() in /usr/lib/gedit/plugins/externaltools/capture.py isn't passed the 'source' argument. That way the processing terminates and the last buffer of the external command's output is lost. Adding the parameter (see patch) solved it for me.
** Patch added: "gedit-externaltools-capture.py-process_read_buffer-source-parameter.patch" https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/995747/+attachment/3145546/+files/gedit-externaltools-capture.py-process_read_buffer-source-parameter.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/995747 Title: Gedit: Remove trailing spaces feature removes last line. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/995747/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs