-
Notifications
You must be signed in to change notification settings - Fork 14
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Indent array values #8
Comments
True. This style of indentation is not required though. In my experience, either way works. This is the default created by I do intend to look into changing it, mainly because my yaml linter in VSCode uses the indentation level you proffer. There have been some big changes to ruamel.yaml recently which I may have to work through while figuring out how to set a different default indentation level. Here's the issue. I can enforce the indentation using this method: However, this uses the new ruamel API. I've tried switching to the new API but so far it has ended up printing all sorts of "superfluous" code in the YAML which is not helpful or pretty. It's obviously something that needs to be addressed as the old API is deprecated, either by figuring it out or switching back to PyYAML. |
At the moment, strings within an array have the same indent level:
Current behavior:
Expected behavior:
The text was updated successfully, but these errors were encountered: