Output generated when running gedit from terminal and using removetrailing spaces tool:
:~$ gedit dmesg.txt Traceback (most recent call last): File "/usr/lib/gedit/plugins/externaltools/capture.py", line 197, in on_output self.process_read_buffer() File "/usr/lib/gedit/plugins/externaltools/capture.py", line 156, in process_read_buffer if source == self.pipe.stdout: NameError: global name 'source' is not defined Traceback (most recent call last): File "/usr/lib/gedit/plugins/externaltools/capture.py", line 197, in on_output self.process_read_buffer() File "/usr/lib/gedit/plugins/externaltools/capture.py", line 156, in process_read_buffer if source == self.pipe.stdout: NameError: global name 'source' is not defined List of active plugins: :~$ gconftool-2 -g /apps/gedit-2/plugins/active-plugins [joinlines,zeitgeistplugin,gdpfind,filebrowser,externaltools,gdpbzr,bookmarks,spell,docinfo,time,codecomment,colorpicker,gdpformat,modelines] --- Ubuntu Bug Squad volunteer triager http://wiki.ubuntu.com/BugSquad -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gedit-plugins in Ubuntu. https://bugs.launchpad.net/bugs/995747 Title: Gedit: Remove trailing spaces feature removes last line. Status in “gedit-plugins” package in Ubuntu: Confirmed Bug description: Ubuntu 12.04 LTS, 64Bit Gedit 3.4.1 Here's what happend. 1. Launch gedit. 2. Create new file type. I am writing PHP file when I noticed it. So I created a PHP file. 3. Put some codes/strings in there. Be sure your last line is a text. 4. Use Remove trailing spaces feature of gedit. 5. Observe, the last line will be trimmed. I expect, only trailing spaces will be removed. I found out that the last line was also remove. I also use other programming languages and still removes the string. Attached is the sample string I made. Open it with gedit 3.4.1 and remove trailing spaces. The comment should not be removed. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit-plugins/+bug/995747/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp