add semicolons
parent
66582b19e7
commit
83e1bf0dc4
|
@ -915,7 +915,7 @@ exports.applyToText = function (cs, str) {
|
|||
var csIter = exports.opIterator(unpacked.ops);
|
||||
var bankIter = exports.stringIterator(unpacked.charBank);
|
||||
var strIter = exports.stringIterator(str);
|
||||
var newlinefail = false
|
||||
var newlinefail = false;
|
||||
var assem = exports.stringAssembler();
|
||||
while (csIter.hasNext()) {
|
||||
var op = csIter.next();
|
||||
|
@ -924,7 +924,7 @@ exports.applyToText = function (cs, str) {
|
|||
//op is + and op.lines 0: no newlines must be in op.chars
|
||||
//op is + and op.lines >0: op.chars must include op.lines newlines
|
||||
if(op.lines != bankIter.peek(op.chars).split("\n").length - 1){
|
||||
newlinefail = true
|
||||
newlinefail = true;
|
||||
}
|
||||
assem.append(bankIter.take(op.chars));
|
||||
break;
|
||||
|
@ -932,7 +932,7 @@ exports.applyToText = function (cs, str) {
|
|||
//op is - and op.lines 0: no newlines must be in the deleted string
|
||||
//op is - and op.lines >0: op.lines newlines must be in the deleted string
|
||||
if(op.lines != strIter.peek(op.chars).split("\n").length - 1){
|
||||
newlinefail = true
|
||||
newlinefail = true;
|
||||
}
|
||||
strIter.skip(op.chars);
|
||||
break;
|
||||
|
@ -940,7 +940,7 @@ exports.applyToText = function (cs, str) {
|
|||
//op is = and op.lines 0: no newlines must be in the copied string
|
||||
//op is = and op.lines >0: op.lines newlines must be in the copied string
|
||||
if(op.lines != strIter.peek(op.chars).split("\n").length - 1){
|
||||
newlinefail = true
|
||||
newlinefail = true;
|
||||
}
|
||||
assem.append(strIter.take(op.chars));
|
||||
break;
|
||||
|
@ -1620,7 +1620,7 @@ exports.makeAText = function (text, attribs) {
|
|||
exports.applyToAText = function (cs, atext, pool) {
|
||||
var text = exports.applyToText(cs, atext.text)
|
||||
if(text[1]){
|
||||
throw new Error("newline count is wrong, cs:"+cs+" and text:"+atext.text)
|
||||
throw new Error("newline count is wrong, cs:"+cs+" and text:"+atext.text);
|
||||
}
|
||||
return {
|
||||
text: text[0],
|
||||
|
|
Loading…
Reference in New Issue