diff options
-rw-r--r-- | src/frontEnd/ProjectExplorer.py | 2 |
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() |