Fix output formatting of Cleaner and SurfOpt plugins so that new lines are printed

This commit is contained in:
Christophe Bourcier 2019-01-08 15:16:15 +01:00 committed by vsr
parent f99f2e7e52
commit f5882cb240
2 changed files with 6 additions and 4 deletions

View File

@ -120,11 +120,12 @@ class MGCleanerMonViewText(Ui_ViewExe, QDialog):
def readFromStdErr(self):
a=self.monExe.readAllStandardError()
self.TB_Exe.append(str(a.data()))
aa=a.data().decode(errors='ignore')
self.TB_Exe.append(aa)
def readFromStdOut(self) :
a=self.monExe.readAllStandardOutput()
aa=str(a.data())
aa=a.data().decode(errors='ignore')
self.TB_Exe.append(aa)
def finished(self):

View File

@ -107,11 +107,12 @@ class MonViewText(Ui_ViewExe, QDialog):
def readFromStdErr(self):
a=self.monExe.readAllStandardError()
self.TB_Exe.append(str(a.data().encode()))
aa=a.data().decode(errors='ignore')
self.TB_Exe.append(aa)
def readFromStdOut(self) :
a=self.monExe.readAllStandardOutput()
aa=str(a.data())
aa=a.data().decode(errors='ignore')
self.TB_Exe.append(aa)
def finished(self):