mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
🎨 Use single-line to save doc sort conf
This commit is contained in:
parent
ab705cc5f8
commit
12cd152a6f
2 changed files with 4 additions and 4 deletions
|
|
@ -1574,7 +1574,7 @@ func moveSorts(rootID, fromBox, toBox string) {
|
|||
toFullSortIDs[id] = sortVal
|
||||
}
|
||||
|
||||
data, err := gulu.JSON.MarshalIndentJSON(toFullSortIDs, "", " ")
|
||||
data, err := gulu.JSON.MarshalJSON(toFullSortIDs)
|
||||
if nil != err {
|
||||
logging.LogErrorf("marshal sort conf failed: %s", err)
|
||||
return
|
||||
|
|
@ -1649,7 +1649,7 @@ func ChangeFileTreeSort(boxID string, paths []string) {
|
|||
fullSortIDs[sortID] = sortVal
|
||||
}
|
||||
|
||||
data, err = gulu.JSON.MarshalIndentJSON(fullSortIDs, "", " ")
|
||||
data, err = gulu.JSON.MarshalJSON(fullSortIDs)
|
||||
if nil != err {
|
||||
logging.LogErrorf("marshal sort conf failed: %s", err)
|
||||
return
|
||||
|
|
@ -1708,7 +1708,7 @@ func (box *Box) removeSort(ids []string) {
|
|||
delete(fullSortIDs, toRemove)
|
||||
}
|
||||
|
||||
data, err = gulu.JSON.MarshalIndentJSON(fullSortIDs, "", " ")
|
||||
data, err = gulu.JSON.MarshalJSON(fullSortIDs)
|
||||
if nil != err {
|
||||
logging.LogErrorf("marshal sort conf failed: %s", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue