fix: no need to clean content for db graphs

pull/10050/head
Tienson Qin 2023-08-16 01:13:59 +08:00
parent 58fc4bca28
commit cef72a1463
1 changed files with 6 additions and 4 deletions

View File

@ -1264,10 +1264,12 @@
(defn- clean-content!
[repo format content]
(->> (text/remove-level-spaces content format (config/get-block-pattern format))
(drawer/remove-logbook)
(file-property/remove-properties-when-file-based repo format)
string/trim))
(if (config/db-based-graph? repo)
content
(some->> (text/remove-level-spaces content format (config/get-block-pattern format))
(drawer/remove-logbook)
(file-property/remove-properties-when-file-based repo format)
string/trim)))
(defn insert-command!
[id command-output format {:keys [restore?]