Skip to content
Snippets Groups Projects
Commit 5199fa72 authored by deuce's avatar deuce
Browse files

Keep line numbers in .ssjs as in .xjs... makes error messages much

more usefull.  Only use \n to terminate lines... Win32 uses textmode so it
already "fixes" that.
parent 9fad417f
No related branches found
No related tags found
No related merge requests found
......@@ -40,13 +40,13 @@ if(!file_exists(ssjs_filename)) {
}
else {
if(str.search(/<\?(xjs)?\s+/)==-1) {
script += "writeln("+escape_quotes(str)+");\r\n";
script += "writeln("+escape_quotes(str)+");";
str='';
}
else {
str=str.replace(/^(.*?)<\?(xjs)?\s+/,
function (str, p1, p2, offset, s) {
script += "write("+escape_quotes(p1)+");\r\n";
script += "write("+escape_quotes(p1)+");";
in_xjs=true;
return '';
}
......@@ -62,7 +62,7 @@ if(!file_exists(ssjs_filename)) {
else {
str=str.replace(/^(.*?)\?>/,
function (str, p1, offset, s) {
script += p1+";\r\n";
script += p1+";";
in_xjs=false;
return '';
}
......@@ -70,6 +70,7 @@ if(!file_exists(ssjs_filename)) {
}
}
}
script += '\n';
}
var f=new File(ssjs_filename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment