summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-21 09:31:59 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-21 09:31:59 -0800
commit6e201b744581bb080dad8dfe40247f73688ede2d (patch)
tree05930eef8254c8fbd97653153d8dea78983d35b0
parentf2a9bbe3054be919be22917edf560dd6ecac3ae2 (diff)
Adjust lastLineLength before returning after close fence.
-rw-r--r--js/lib/blocks.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index 257b991..57aba3d 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -307,6 +307,7 @@ var incorporateLine = function(ln) {
// closing fence - we're at end of line, so we can return
all_matched = false;
this.finalize(container, this.lineNumber);
+ this.lastLineLength = ln.length - 1; // -1 for newline
return;
} else {
// skip optional spaces of fence offset