fix: copy&paste err on win

This commit is contained in:
rcmerci
2021-07-26 19:41:36 +08:00
committed by Tienson Qin
parent a2f32e0325
commit 6e965e10f3

View File

@@ -2658,7 +2658,8 @@
(if (and
(:copy/content copied-blocks)
(not (string/blank? text))
(= (string/trim text) (string/trim (:copy/content copied-blocks))))
(= (string/replace (string/trim text) "\r" "")
(string/replace (string/trim (:copy/content copied-blocks)) "\r" "")))
(do
;; copy from logseq internally
(paste-block-vec-tree-at-target copied-block-tree [])