Skip to content

Commit

Permalink
fix: starlark_codegen_utils.to_dict_list_attr
Browse files Browse the repository at this point in the history
The list inside the dict should be formatted and indented.
  • Loading branch information
jjmaestro committed Dec 11, 2024
1 parent ddf763d commit 9b2abd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apt/private/starlark_codegen_utils.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def _to_dict_list_attr(dict, indent_count = 0, indent_size = 4, quote_key = True
result = "{"
for k, v in dict.items():
key = "\"{}\"".format(k) if quote_key else k
v = _to_list_attr(v, indent_count + 1, indent_size)
result += "\n%s%s%s: %s," % (indent, tab, key, v)
result += "\n%s}" % indent
return result
Expand Down

0 comments on commit 9b2abd4

Please sign in to comment.