diff --git a/otterdog/operations/__init__.py b/otterdog/operations/__init__.py index 665fd22e..cf7db72a 100644 --- a/otterdog/operations/__init__.py +++ b/otterdog/operations/__init__.py @@ -228,8 +228,8 @@ def _print_modified_internal( self.printer.println(f"{prefix}{key.ljust(max_key_length, ' ')} = {{") self.printer.level_up() self._print_modified_dict_internal(max_key_length, current_value, expected_value, prefix, color) - self.printer.println("}") self.printer.level_down() + self.printer.println(f"{prefix}}}") elif isinstance(expected_value, list): self.printer.println(f"{prefix}{key.ljust(max_key_length, ' ')} = [") self.printer.level_up() diff --git a/tests/operations/test_operation.py b/tests/operations/test_operation.py index 5d3feae1..313be7a6 100644 --- a/tests/operations/test_operation.py +++ b/tests/operations/test_operation.py @@ -46,7 +46,7 @@ class OperationTest(unittest.TestCase): ' ~ 1 -> 3' ' - 2' ' ~ ]' - ' }' + ' ~ }' '~ }', ), ]