From 625c93769b81938781ba19450b15debd4ef7e396 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 21 Jan 2015 09:28:01 -0800 Subject: Removed unnecessary check. --- js/lib/blocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 57aba3d..abaea17 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -496,18 +496,18 @@ var incorporateLine = function(ln) { // finalize any blocks not matched allClosed = allClosed || this.closeUnmatchedBlocks(); - t = container.type; if (blank && container.lastChild) { container.lastChild._lastLineBlank = true; } + t = container.type; + // Block quote lines are never blank as they start with > // and we don't count blanks in fenced code for purposes of tight/loose // lists or breaking out of lists. We also don't set _lastLineBlank // on an empty list item, or if we just closed a fenced block. container._lastLineBlank = blank && !(t === 'BlockQuote' || - t === 'Header' || (t === 'CodeBlock' && container._isFenced) || (t === 'Item' && !container._firstChild && -- cgit v1.2.3