Skip to content
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

Comment breaks yaml output #310

Open
jleader opened this issue Jun 30, 2023 · 0 comments
Open

Comment breaks yaml output #310

jleader opened this issue Jun 30, 2023 · 0 comments

Comments

@jleader
Copy link

jleader commented Jun 30, 2023

Given the following file:

---
- name: foo
  # comment here screws things up
  bar: {}

Running dyff yaml foo.yaml produces the following output:

---
- name: foo
  # comment here screws things up
bar: {}

Without the comment, it works correctly (bar is indented to match name: foo). JSON output works correctly even in the presence of the comment. This is with dyff 1.5.7, which is the latest available from homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant