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

Remove trailing spaces #19

Open
xstable opened this issue Jan 6, 2017 · 2 comments
Open

Remove trailing spaces #19

xstable opened this issue Jan 6, 2017 · 2 comments

Comments

@xstable
Copy link

xstable commented Jan 6, 2017

The whole file is indent two spaces.
Is it possible to remove those spaces?

So the file will not be longer:

---
  param1:
    name: test

but

---
param1:
  name: test

Even an Option to remove the trailing --- would be nice.

@mrkitan
Copy link

mrkitan commented Dec 28, 2018

I had a the same problem and I did it with regex, but maybe there is something else, better solution for it. ;)

@ralphjesy12
Copy link

I can see this isn't fixed yet. So just a quick regex replace (like @mrkitan's suggestion) for those who doesn't have time to wait/send a PR like me.

let yaml = YAML.stringify(this.matterObject).replace(/^[\s]{2}/gm,'');

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

3 participants