mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 12:26:17 +00:00
avoid yaml keys to be re-ordered
This commit is contained in:
@@ -751,7 +751,7 @@ class CfgYaml:
|
|||||||
# ensure no null are displayed
|
# ensure no null are displayed
|
||||||
data = yaml.safe_dump(content,
|
data = yaml.safe_dump(content,
|
||||||
default_flow_style=False,
|
default_flow_style=False,
|
||||||
indent=2)
|
indent=2, sort_keys=False)
|
||||||
data = data.replace('null', '')
|
data = data.replace('null', '')
|
||||||
|
|
||||||
# save to file
|
# save to file
|
||||||
|
|||||||
Reference in New Issue
Block a user