fix: remove blank when deleting a block and append to its prev block

This commit is contained in:
Tienson Qin
2022-01-20 11:31:43 +08:00
parent 27caa5d576
commit c3ebaaf51e

View File

@@ -944,8 +944,8 @@
(let [original-content (util/trim-safe (:block/content block))
value' (-> (property/remove-built-in-properties format original-content)
(drawer/remove-logbook))
new-value (str value' " " (string/triml value))
tail-len (count (string/triml value))
new-value (str value' value)
tail-len (count value)
pos (max
(if original-content
(utf8/length (utf8/encode original-content))