mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 07:18:49 +01:00
🎨 Database .json follows the doc tree single line save setting https://github.com/siyuan-note/siyuan/issues/10571
This commit is contained in:
parent
8675b49daa
commit
7f82fc21af
7 changed files with 12 additions and 7 deletions
|
|
@ -468,7 +468,12 @@ func SaveAttributeView(av *AttributeView) (err error) {
|
|||
}
|
||||
}
|
||||
|
||||
data, err := gulu.JSON.MarshalJSON(av)
|
||||
var data []byte
|
||||
if util.UseSingleLineSave {
|
||||
data, err = gulu.JSON.MarshalJSON(av)
|
||||
} else {
|
||||
data, err = gulu.JSON.MarshalIndentJSON(av, "", "\t")
|
||||
}
|
||||
if nil != err {
|
||||
logging.LogErrorf("marshal attribute view [%s] failed: %s", av.ID, err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue