summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-16 18:51:23 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-16 18:51:23 -0800
commit33626b1d0e2e8bda1c29b3f310ba4c7a07de0495 (patch)
tree4acf64af9d24a07bf70f2fbacdd89d99c1f20f7e
parent86c34d69c79363bf5dc044e715405f387b11bbfc (diff)
Check for blank line before checking indent in Item.
-rw-r--r--js/lib/blocks.js6
1 files 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;
}