diff --git a/src/wstool/config_yaml.py b/src/wstool/config_yaml.py index 19f82e5..e64325b 100644 --- a/src/wstool/config_yaml.py +++ b/src/wstool/config_yaml.py @@ -446,7 +446,7 @@ def generate_config_yaml(config, filename, header, pretty=False, content += yaml.safe_dump(items, allow_unicode=True, default_flow_style=False) else: - content += yaml.safe_dump(items) + content += yaml.safe_dump(items, default_flow_style=None) if filename: config_filepath = filename if os.path.isabs(filename) else \ diff --git a/src/wstool/multiproject_cli.py b/src/wstool/multiproject_cli.py index 3c652d0..b0148cc 100644 --- a/src/wstool/multiproject_cli.py +++ b/src/wstool/multiproject_cli.py @@ -1274,7 +1274,7 @@ def cmd_info(self, target_path, argv, reverse=True, config=None): # but that command was not implemented. source_aggregate = multiproject_cmd.cmd_snapshot(config, localnames=args) - print(yaml.safe_dump(source_aggregate), end='') + print(yaml.safe_dump(source_aggregate, default_flow_style=None), end='') return 0 # this call takes long, as it invokes scms.