Prepend list items with "- "

This commit is contained in:
udf 2018-11-21 22:38:02 +02:00
parent e760062218
commit 778a604d69
Signed by untrusted user: kate
GPG Key ID: E40724BAD73AF77B
1 changed files with 1 additions and 2 deletions

View File

@ -74,8 +74,7 @@ def yaml_format(obj, indent=0):
result.append('\n') result.append('\n')
indent += 2 indent += 2
for x in obj: for x in obj:
result.append(' ' * indent) result.append(f"{' ' * indent}- {yaml_format(x, indent + 2)}")
result.append(yaml_format(x, indent))
result.append('\n') result.append('\n')
result.pop() result.pop()
indent -= 2 indent -= 2