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

Open ended streams need document end marker #49

Merged
merged 1 commit into from
Jan 13, 2020
Merged

Conversation

perlpunk
Copy link
Member

...like block scalars with the |+ indicator for keeping trailing
empty lines

This document, if the last in the stream:

keep: |+
  line1


should be emitted as:

keep: |+
  line1


...

pyyaml and ruamel are doing this correctly (libyaml will do after the next release)

But there's room for discussion:
Arguably, this rule should also apply to all other documents in the stream, because a single document in a stream should be the same as the document alone.

But neither pyyaml nor ruamel currently output a ... in this case:

keep: |+
  line1


--- doc two

I suggest to fix those two cases for now and discuss about the other use case then.

@perlpunk perlpunk changed the title WIP Open ended documents need document end marker WIP Open ended streams need document end marker Dec 28, 2019
@perlpunk
Copy link
Member Author

See #50 for a followup

...like block scalars with the `|+` indicator for keeping trailing
empty lines
@perlpunk perlpunk force-pushed the perlpunk/open-ended branch from 3874fd9 to 55e8221 Compare January 13, 2020 10:51
@perlpunk perlpunk marked this pull request as ready for review January 13, 2020 11:04
@perlpunk perlpunk changed the title WIP Open ended streams need document end marker Open ended streams need document end marker Jan 13, 2020
@perlpunk perlpunk changed the base branch from master to release January 13, 2020 11:06
@perlpunk perlpunk merged commit 019440b into release Jan 13, 2020
@perlpunk perlpunk deleted the perlpunk/open-ended branch February 11, 2020 17:26
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.

1 participant