|
|
@@ -571,8 +571,7 @@
|
|
|
(dec (count value))
|
|
|
(util/get-input-pos input))
|
|
|
repo (or repo (state/get-current-repo))
|
|
|
- ;; block-has-children? (seq children) ; not working for now
|
|
|
- block-has-children? (db/block-has-children? repo block)
|
|
|
+ block-has-children? (seq (:block/children block))
|
|
|
fst-block-text (subs value 0 pos)
|
|
|
snd-block-text (string/triml (subs value pos))
|
|
|
fst-block-text (string/trim (if with-level? fst-block-text (block/with-levels fst-block-text format block)))
|