From 78c21916daac55b1f28b07c5d4d1368eb926ba38 Mon Sep 17 00:00:00 2001
From: Marco Ratto <marco.ratto@jrc.ec.europa.eu>
Date: Fri, 21 Jan 2011 11:25:30 +0100
Subject: [PATCH] Fixed output for octave/unix octave/win

---
 matlab/parallel/masterParallel.m | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/matlab/parallel/masterParallel.m b/matlab/parallel/masterParallel.m
index f1ac3eb573..7894051fab 100644
--- a/matlab/parallel/masterParallel.m
+++ b/matlab/parallel/masterParallel.m
@@ -504,7 +504,11 @@ while (ForEver)
             pcerdone(j) = prtfrc;
             idCPU(j) = njob;
             if exist('OCTAVE_VERSION') || (options_.console_mode == 1),
-                statusString = [statusString, int2str(j), ' %3.f%% done! '];
+                if (~ispc)
+                    statusString = ['\n',statusString, int2str(j), ' %3.f%% done! '];
+                 else
+                     statusString = [statusString, int2str(j), ' %3.f%% done! '];
+                end
             else
                 status_String{j} = waitbarString;
                 status_Title{j} = waitbarTitle;
@@ -512,7 +516,11 @@ while (ForEver)
         catch % ME
             % To define!
             if exist('OCTAVE_VERSION') || (options_.console_mode == 1),
-                statusString = [statusString, int2str(j), ' %3.f%% done! '];
+                 if (~ispc)
+                     statusString = ['\n',statusString, int2str(j), ' %3.f%% done! '];
+                 else
+                     statusString = [statusString, int2str(j), ' %3.f%% done! '];
+                end
             end
         end
     end
-- 
GitLab