From 640ebd1571e5cdcfd1a013cc4d51e3306b62b779 Mon Sep 17 00:00:00 2001
From: Stefano Borini <sborini@enthought.com>
Date: Wed, 9 Aug 2017 15:18:15 +0100
Subject: [PATCH] Using \n as data divider

---
 .../core_plugins/dummy/ui_notification/ui_notification.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/force_bdss/core_plugins/dummy/ui_notification/ui_notification.py b/force_bdss/core_plugins/dummy/ui_notification/ui_notification.py
index 8e21584..0553339 100644
--- a/force_bdss/core_plugins/dummy/ui_notification/ui_notification.py
+++ b/force_bdss/core_plugins/dummy/ui_notification/ui_notification.py
@@ -51,11 +51,13 @@ class UINotification(BaseNotificationListener):
 
     def _format_event(self, event):
         if isinstance(event, MCOStartEvent):
-            data = "MCO_START"
+            data = "MCO_START\n"
         elif isinstance(event, MCOFinishEvent):
-            data = "MCO_FINISH"
+            data = "MCO_FINISH\n"
         elif isinstance(event, MCOProgressEvent):
-            data = "MCO_PROGRESS {} {}".format(event.input, event.output)
+            data = "MCO_PROGRESS\n{}\n{}\n".format(
+                " ".join([str(x) for x in event.input]),
+                " ".join([str(x) for x in event.output]))
         else:
             return None
 
-- 
GitLab