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

Add space after each object #110

Open
vinodkolla opened this issue Mar 7, 2018 · 0 comments
Open

Add space after each object #110

vinodkolla opened this issue Mar 7, 2018 · 0 comments

Comments

@vinodkolla
Copy link

vinodkolla commented Mar 7, 2018

I am using yaml-js to auto-format the yaml files. I have a big JSON file with chunks of objects in it. When i convert them to YAML format, i want to add space after each json object. Example:

{
  person1: {
    name: "Foo"
  },
  person2: {
     name: "Bar"
  }
}

When this is converted to YAML, it formats as

person1:
    name: "Foo"
person2:
   name: "Bar"

Expected output is :

person1:
    name: "Foo"

person2:
   name: "Bar"
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