gedit r6808 - in trunk: . plugins/externaltools/tools
- From: pborelli svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6808 - in trunk: . plugins/externaltools/tools
- Date: Mon, 5 Jan 2009 12:59:38 +0000 (UTC)
Author: pborelli
Date: Mon Jan 5 12:59:38 2009
New Revision: 6808
URL: http://svn.gnome.org/viewvc/gedit?rev=6808&view=rev
Log:
2009-01-05 Paolo Borelli <pborelli katamail com>
* plugins/externaltools/tools/manager.py: do not add an extra new
line each time a tool is modified and saved. (Bug #566576)
Modified:
trunk/ChangeLog
trunk/plugins/externaltools/tools/manager.py
Modified: trunk/plugins/externaltools/tools/manager.py
==============================================================================
--- trunk/plugins/externaltools/tools/manager.py (original)
+++ trunk/plugins/externaltools/tools/manager.py Mon Jan 5 12:59:38 2009
@@ -159,7 +159,7 @@
h = self.compute_hash(script)
if h != self.script_hash:
# script has changed -> save it
- self.current_node.save_with_script([line + "\n" for line in script.split("\n")])
+ self.current_node.save_with_script([line + "\n" for line in script.splitlines()])
self.script_hash = h
else:
self.current_node.save()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]