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

Port bug fix from Perl binding #18

Merged
merged 1 commit into from
Oct 6, 2016
Merged

Port bug fix from Perl binding #18

merged 1 commit into from
Oct 6, 2016

Conversation

ingydotnet
Copy link
Member

No description provided.

This code was disabled in Perl binding for breaking tests.

Kirill said on IRC:

< rz> ingy: i'm not sure why i set open_ended in yaml_emitter_write_plain_scalar
Copy link
Contributor

@sigmavirus24 sigmavirus24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm still not super familiar with libyaml. What does "open_ended" do to the emitter?

@ingydotnet
Copy link
Member Author

It seems to tell the emitter to output ... after a document.

if (emitter->open_ended)

Copy link
Contributor

@sigmavirus24 sigmavirus24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@ingydotnet ingydotnet merged commit 56400d9 into master Oct 6, 2016
@sigmavirus24 sigmavirus24 deleted the bug/open_ended branch October 6, 2016 18:38
sigmavirus24 pushed a commit to sigmavirus24/libyaml that referenced this pull request Apr 6, 2017
straight-shoota added a commit to straight-shoota/crystal that referenced this pull request Jun 28, 2018
libyaml 0.2.1 removed the errorneously written document end marker (`...`) after some scalars in root context (see yaml/libyaml#18).
Earlier libyaml releases still write the document end marker and this is hard to fix on Crystal's side. So we just ignore it and adopt the specs accordingly to coincide with the used libyaml version.
bcardiff pushed a commit to crystal-lang/crystal that referenced this pull request Jun 29, 2018
libyaml 0.2.1 removed the errorneously written document end marker (`...`) after some scalars in root context (see yaml/libyaml#18).
Earlier libyaml releases still write the document end marker and this is hard to fix on Crystal's side. So we just ignore it and adopt the specs accordingly to coincide with the used libyaml version.
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

Successfully merging this pull request may close these issues.

None yet

2 participants