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

Parser removing "#" in multiline strings #131

Open
evanreichard opened this issue Oct 31, 2019 · 2 comments
Open

Parser removing "#" in multiline strings #131

evanreichard opened this issue Oct 31, 2019 · 2 comments

Comments

@evanreichard
Copy link

The following:

item:
  1:
    - value: |
        ### Header

Results in:

{
  "item": {
    "1": [
      {
        "value": ""
      }
    ]
  }
}

When it should result in:

{
  "item": {
    "1": [
      {
        "value": "### Header"
      }
    ]
  }
}
@musteray
Copy link

musteray commented Nov 7, 2019

@evanreichard

We have same issue.

This is mutation problem in cleanup function. He used the parameter as variable and return value in the function.
I tried to add new variable and used that as a return variable, it works but another problem pops out.

@toymachiner62
Copy link

I switched over to using js-yaml due to this bug and it worked like a charm.

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