rewrite-to-python: add test for hocon includes, fix generator bug
This commit is contained in:
@@ -72,7 +72,7 @@ def to_hocon(x: Any) -> str:
|
||||
return f"[\n{'\n'.join(items)}\n]"
|
||||
elif isinstance(x, dict):
|
||||
items = [
|
||||
f' {k}: {indent(to_hocon(v), ' ').removeprefix(' ')}'
|
||||
f' "{k}": {indent(to_hocon(v), ' ').removeprefix(' ')}'
|
||||
for k, v in x.items()
|
||||
]
|
||||
return f"{{\n{'\n'.join(items)}\n}}"
|
||||
|
||||
Reference in New Issue
Block a user