summaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-14 22:10:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-14 22:10:33 -0800
commit16d7d3df1cbf0880416d2eaa610d72bb06f5da56 (patch)
tree16b4690050eda153bd2449a2fab435801993f86f /js/lib
parent39537f3f2a5969f607f5efc8b77668248adf38f3 (diff)
Slightly more efficient test for lazy continuation.
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/blocks.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index cb4bd5f..590852a 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -481,8 +481,7 @@ var incorporateLine = function(ln) {
indent = first_nonspace - offset;
// First check for a lazy paragraph continuation:
- if (this.tip !== this.lastMatchedContainer &&
- !blank &&
+ if (!allClosed && !blank &&
this.tip.t === 'Paragraph' &&
this.tip.strings.length > 0) {
// lazy paragraph continuation