FEM: Remove multiple empty lines produced by ccx before sending to FEM console

Signed-off-by: Przemo Firszt <przemo@firszt.eu>
This commit is contained in:
Przemo Firszt 2015-04-24 19:36:49 +01:00 committed by wmayer
parent bdfe2bafda
commit 9f7728573d

View File

@ -297,6 +297,7 @@ class _JobControlTaskPanel:
match = rx.cap(0)
FreeCAD.Console.PrintError(match.strip().replace('\n', ' ') + '\n')
pos = rx.indexIn(out, pos + 1)
out = os.linesep.join([s for s in out.splitlines() if s])
self.femConsoleMessage(out.replace('\n', '<br>'))
except UnicodeDecodeError:
self.femConsoleMessage("Error converting stdout from CalculiX", "#FF0000")