From 622f2dee480c1e352b0c2821c63fe443d8419ab8 Mon Sep 17 00:00:00 2001 From: fahim Date: Tue, 2 Jun 2015 12:54:04 +0530 Subject: Subject: Project Explorer Open File(Extra Space) Bug Fixing Description: Project Explorer Open File(Extra Space) Bug Fixing --- src/frontEnd/ProjectExplorer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/frontEnd/ProjectExplorer.py b/src/frontEnd/ProjectExplorer.py index d98c5d15..b9b5fc66 100644 --- a/src/frontEnd/ProjectExplorer.py +++ b/src/frontEnd/ProjectExplorer.py @@ -109,7 +109,7 @@ class ProjectExplorer(QtGui.QWidget): def save_data(self): self.fopen=open(self.filePath, 'w') lines = str(self.text.toPlainText()).split('\n') - lines=[i+'\r' for i in lines] + lines=[i+'\r' if i in lines[:-1] else i for i in lines] self.fopen.writelines(lines) self.fopen.close() self.textwindow.close() -- cgit