forked from kate/uniborg
fix broken indentation when lots of nested items are present
This commit is contained in:
parent
b21f5ec104
commit
573f36bf57
|
@ -51,6 +51,7 @@ def yaml_format(obj, indent=0):
|
|||
result.append(f'{formatted}')
|
||||
result.append('\n')
|
||||
result.pop()
|
||||
if has_multiple_items:
|
||||
indent -= 2
|
||||
elif isinstance(obj, str):
|
||||
# truncate long strings and display elipsis
|
||||
|
|
Loading…
Reference in New Issue