mirror of
https://github.com/nix-community/dream2nix.git
synced 2025-01-03 11:56:36 +03:00
docs: fix incorrect option rendering...
for first children of nested options. thanks @yorickvP for reporting this in https://github.com/nix-community/dream2nix/pull/987
This commit is contained in:
parent
1b5e01219a
commit
69d78dbcad
@ -54,7 +54,7 @@ def preprocess_options(options, module_name):
|
||||
cursor[part] = dict(**option, children={})
|
||||
else:
|
||||
cursor[part] = dict(children=dict())
|
||||
cursor = cursor[part]
|
||||
cursor = cursor[part]["children"]
|
||||
else:
|
||||
cursor = cursor[part]["children"]
|
||||
return OrderedDict(sorted(tree.items(), key=lambda i: sort_options(i, module_name)))
|
||||
|
Loading…
Reference in New Issue
Block a user