Skip to content
Snippets Groups Projects
Commit ba5b09f5 authored by rswindell's avatar rswindell
Browse files

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!
parent 4015d214
Branches
Tags
No related merge requests found
......@@ -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]));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment