From 778a604d6941a09f635021559800a136e042c85b Mon Sep 17 00:00:00 2001 From: udf Date: Wed, 21 Nov 2018 22:38:02 +0200 Subject: [PATCH] Prepend list items with "- " --- stdplugins/info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stdplugins/info.py b/stdplugins/info.py index 260c007..8c18420 100644 --- a/stdplugins/info.py +++ b/stdplugins/info.py @@ -74,8 +74,7 @@ def yaml_format(obj, indent=0): result.append('\n') indent += 2 for x in obj: - result.append(' ' * indent) - result.append(yaml_format(x, indent)) + result.append(f"{' ' * indent}- {yaml_format(x, indent + 2)}") result.append('\n') result.pop() indent -= 2