From 33626b1d0e2e8bda1c29b3f310ba4c7a07de0495 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 16 Jan 2015 18:51:23 -0800 Subject: Check for blank line before checking indent in Item. --- js/lib/blocks.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/lib/blocks.js b/js/lib/blocks.js index 14c9339..756b79c 100644 --- a/js/lib/blocks.js +++ b/js/lib/blocks.js @@ -286,12 +286,12 @@ var incorporateLine = function(ln) { break; case 'Item': - if (indent >= container._listData.markerOffset + + if (blank) { + offset = first_nonspace; + } else if (indent >= container._listData.markerOffset + container._listData.padding) { offset += container._listData.markerOffset + container._listData.padding; - } else if (blank) { - offset = first_nonspace; } else { all_matched = false; } -- cgit v1.2.3