From 45b00c5560e4fb371bdfc3ae022008542bc40897 Mon Sep 17 00:00:00 2001 From: Peng Xiao Date: Sat, 24 Sep 2022 10:20:30 +0800 Subject: [PATCH] fix: do not save pretty print results --- src/main/frontend/modules/file/core.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/frontend/modules/file/core.cljs b/src/main/frontend/modules/file/core.cljs index 34eb628a1b..df89d73be3 100644 --- a/src/main/frontend/modules/file/core.cljs +++ b/src/main/frontend/modules/file/core.cljs @@ -138,8 +138,8 @@ file-path (-> (db-utils/entity file-db-id) :file/path)] (if (and (string? file-path) (not-empty file-path)) (let [new-content (if (:block/whiteboard? page-block) - (util/pp-str {:blocks (map remove-transit-ids tree) - :pages (list (remove-transit-ids page-block))}) + (pr-str {:blocks (map remove-transit-ids tree) + :pages (list (remove-transit-ids page-block))}) (tree->file-content tree {:init-level init-level})) files [[file-path new-content]] repo (state/get-current-repo)]