Skip to content

Fix for YAML 1.1 multi-document directive inheritance - #342

Open
gargan26 wants to merge 1 commit into
yaml:masterfrom
gargan26:fix-directive-inheritance
Open

Fix for YAML 1.1 multi-document directive inheritance#342
gargan26 wants to merge 1 commit into
yaml:masterfrom
gargan26:fix-directive-inheritance

Conversation

@gargan26

Copy link
Copy Markdown

fixes #341

The YAML 1.1 specification says:

If the document specifies no directives, it is parsed using the same settings as the previous document. If the document does specify any directives, all directives of previous documents, if any, are ignored.

This is a simple update so that if no directives are present in the current document, then the previously declared directives are used instead.

fixes [yaml#341](yaml#341)

The [YAML 1.1](http://yaml.org/spec/1.1/#l-first-document) specification says:
> If the document specifies no directives, it is parsed using the same settings as the previous document. If the document does specify any directives, all directives of previous documents, if any, are ignored.

This is a simple update so that if no directives are present in the current document, then the previously declared directives are used instead.
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.

YAML 1.1 multi-document directives are not processed correctly

1 participant