fix: no need to clean content for db graphs

This commit is contained in:
Tienson Qin
2023-08-16 01:13:59 +08:00
parent 58fc4bca28
commit cef72a1463

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?]