summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/lib/blocks.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index c12be92..60e8ca1 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -240,6 +240,7 @@ var incorporateLine = function(ln) {
var container = this.doc;
this.oldtip = this.tip;
this.offset = 0;
+ this.lineNumber += 1;
// replace NUL characters for security
if (ln.indexOf('\u0000') !== -1) {
@@ -664,7 +665,6 @@ var parse = function(input) {
if (this.options.time) { console.timeEnd("preparing input"); }
if (this.options.time) { console.time("block parsing"); }
for (var i = 0; i < len; i++) {
- this.lineNumber += 1;
this.incorporateLine(lines[i]);
}
while (this.tip) {