summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfahim2015-06-02 12:54:04 +0530
committerfahim2015-06-02 12:54:04 +0530
commit622f2dee480c1e352b0c2821c63fe443d8419ab8 (patch)
treef8723807ce68fe2b1523a625a6b8b6c91760e7d1 /src
parent5bd663b93d1cf9aa96ecf7a35a46c0a2e22d7572 (diff)
downloadeSim-622f2dee480c1e352b0c2821c63fe443d8419ab8.tar.gz
eSim-622f2dee480c1e352b0c2821c63fe443d8419ab8.tar.bz2
eSim-622f2dee480c1e352b0c2821c63fe443d8419ab8.zip
Subject: Project Explorer Open File(Extra Space) Bug Fixing
Description: Project Explorer Open File(Extra Space) Bug Fixing
Diffstat (limited to 'src')
-rw-r--r--src/frontEnd/ProjectExplorer.py2
1 files changed, 1 insertions, 1 deletions
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()