mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 16:15:21 +00:00
fix(editor): handle windows crlf in clipboard
This commit is contained in:
@@ -63,8 +63,8 @@
|
||||
[text e html]
|
||||
(util/stop e)
|
||||
(let [copied-blocks (state/get-copied-blocks)
|
||||
copied-graph (:copy/graph copied-blocks)
|
||||
input (state/get-input)
|
||||
text (string/replace text "\r\n" "\n") ;; Fix for Windows platform
|
||||
internal-paste? (and
|
||||
(seq (:copy/blocks copied-blocks))
|
||||
;; not copied from the external clipboard
|
||||
|
||||
Reference in New Issue
Block a user