保存 data/storage/local.json 时格式化 (#6424)

* 🐛 fix #5857

* 🎨 #5990 桌面端 `SiYuan` 可执行程序支持使用参数连接非本机内核服务

* 🎨 style

* 🎨 style

* 🎨 style

* 🎨 改进伺服代码片段 `/snippets/` #6356

* 🎨 调整 win 安装包打包选项

* 🎨 鉴权支持 IPv6 本机回环地址

* 🎨 支持 HEVC 编码视频播放

* 🎨 保存 `data/storage/local.json` 时格式化
This commit is contained in:
颖逸 2022-10-31 14:49:15 +08:00 committed by GitHub
parent 722f71803e
commit 521e8303c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,7 +74,7 @@ func setLocalStorage(val interface{}) (err error) {
return
}
data, err := gulu.JSON.MarshalJSON(val)
data, err := gulu.JSON.MarshalIndentJSON(val, "", " ")
if nil != err {
logging.LogErrorf("marshal local storage failed: %s", err)
return