From ba5b09f5a052bd61670c4a245c5c13e1d3113626 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 10 Jan 2018 21:39:43 +0000
Subject: [PATCH] Add a work-around in sauce_lib.read() for PabloDraw (Windows
 version at least) - where it saves comments (Sauce "Notes") as a single
 \n-terminated comment (limited to 64 chars) rather than an array of 64-char
 comments. This doesn't completely fix the problem because PD still barfs when
 the total comment length is > 64 chars, but it helps. And we don't want
 line-feeds in our comments (e.g. avatar descriptions) anyway!

---
 exec/load/sauce_lib.js | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/exec/load/sauce_lib.js b/exec/load/sauce_lib.js
index 31c6acac2b..37dc269144 100644
--- a/exec/load/sauce_lib.js
+++ b/exec/load/sauce_lib.js
@@ -106,8 +106,11 @@ function read(fname)
 		if(file.read(defs.id_length) == 'COMNT') {
 			while(comments--) {
 				var line = file.read(defs.comment_length);
-				if(line)
-					obj.comment.push(truncsp(line));
+				if(!line)
+					continue;
+				var a = line.split('\n');	// Work-around for PabloDraw-Windows
+				for(var i in a)
+					obj.comment.push(truncsp(a[i]));
 			}
 		}
 	}
-- 
GitLab