Explorar el Código

fix: blanks deleted when paste

Tienson Qin hace 3 años
padre
commit
5ce106813a
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      src/main/frontend/handler/editor.cljs

+ 1 - 2
src/main/frontend/handler/editor.cljs

@@ -2921,8 +2921,7 @@
 
       :else
       ;; from external
-      (let [format (or (db/get-page-format (state/get-current-page)) :markdown)
-            text (string/trim text)]
+      (let [format (or (db/get-page-format (state/get-current-page)) :markdown)]
         (match [format
                 (nil? (util/safe-re-find #"(?m)^\s*(?:[-+*]|#+)\s+" text))
                 (nil? (util/safe-re-find #"(?m)^\s*\*+\s+" text))