fix: disable hiccup export for heading/footer/etc when paste

Also, removes ending `-` when converting html to text
This commit is contained in:
Tienson Qin
2023-06-26 19:43:39 +08:00
parent da97d7620e
commit eb49128f4b
2 changed files with 11 additions and 4 deletions

View File

@@ -248,7 +248,7 @@
(cond
(and (string/blank? text) (string/blank? html))
;; When both text and html are blank, paste file if exists.
;; NOTE: util/stop is not called here if no file is provided,
;; NOTE: util/stop is not called here if no file is provided,
;; so the default paste behavior of the native platform will be used.
(when has-files?
(paste-file-if-exists id e))