diff --git a/compose_format/__init__.py b/compose_format/__init__.py index 40ab03b..2167bde 100755 --- a/compose_format/__init__.py +++ b/compose_format/__init__.py @@ -77,7 +77,8 @@ def format(self, path, replace=False, strict=True): def format_string(self, data, replace=False, strict=True): data = self.reorder(load(data, RoundTripLoader), strict=strict) - formatted = dump(data, Dumper=RoundTripDumper, indent=2, width=120) + formatted = dump(data, Dumper=RoundTripDumper, + indent=2, block_seq_indent=2, width=120) return formatted.strip() + '\n'