closes #556, also removes the newline that was previously inserted

v1.18.x
psychobunny 11 years ago
parent 0afc7c9761
commit e98d05b1a5

@ -248,9 +248,12 @@
if (self.blocks && block !== undefined) self.blocks[block] = data[0];
var begin = new RegExp("(\r\n)*<!-- BEGIN " + block + " -->(\r\n)*", "g"),
end = new RegExp("(\r\n)*<!-- END " + block + " -->(\r\n)*", "g"),
data = data[0]
.replace("<!--[\\s]*BEGIN " + block + "[\\s]*-->", "")
.replace("<!--[\\s]*END " + block + "[\\s]*-->", "");
.replace(begin, "")
.replace(end, "");
return data;
}

Loading…
Cancel
Save