Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py

branch
5_1_x
changeset 1298
090b37850a89
parent 882
34b86be88bf0
child 1301
a2b0aceba6a2
--- a/Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py	Tue Sep 06 18:18:40 2011 +0200
+++ b/Plugins/VcsPlugins/vcsPySvn/SvnDiffDialog.py	Tue Sep 06 18:33:27 2011 +0200
@@ -339,9 +339,10 @@
                 return
         fname = Utilities.toNativeSeparators(fname)
         
+        eol = e5App().getObject("Project").getEolString()
         try:
             f = open(fname, "w", encoding = "utf-8")
-            f.write(self.contents.toPlainText())
+            f.write(eol.join(self.contents.toPlainText().splitlines()))
             f.close()
         except IOError as why:
             E5MessageBox.critical(self, self.trUtf8('Save Diff'),

eric ide

mercurial