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

Signed-off-by: Przemo Firszt <[email protected]>
This commit is contained in:
Przemo Firszt
2015-04-27 21:33:13 +02:00
committed by wmayer
parent bdfe2bafda
commit 9f7728573d
+1
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")