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

Multi-line scalars strip trailing whitespace. #54

Open
jasonvarga opened this issue Aug 12, 2016 · 1 comment
Open

Multi-line scalars strip trailing whitespace. #54

jasonvarga opened this issue Aug 12, 2016 · 1 comment

Comments

@jasonvarga
Copy link
Contributor

Given something like this:

foo: |
  line one..
  line two

(The .. at the end of line one represents spaces.)

When parsing, those spaces get stripped.

The trailing whitespace is important, especially when you indent on parsing that string with something like Markdown after. Two spaces at the end of a line indicates a <br>.

In earlier versions of Spyc, this never happened.

@TimOetting
Copy link

It seems to have the same problem with lines at the beginning of lines.

foo: |
  line one
    line two

ends up in

foo: |
  line one
  line two

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

2 participants