forked from uniborg/uniborg
Prepend list items with "- "
This commit is contained in:
parent
e760062218
commit
778a604d69
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue