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

This commit is contained in:
psychobunny
2013-11-26 13:18:41 -05:00
parent 0afc7c9761
commit e98d05b1a5

View File

@@ -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;
}