-
Notifications
You must be signed in to change notification settings - Fork 63
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
2LFX and 6LVF appear identical #43
Comments
I should note that The two tests you are talking about: 2LFX was added by @flyx for YAML 1.3. The linebreak is not part of the event, so it should not be respected. |
Many thanks for the detailed reply!
I suppose when this rule will take effect, it will change the output ( +STR
- +DOC ---
+ +DOC
- =VAL "foo
+ =VAL :--- "foo
-DOC
-STR
This is a very useful information!
Alright, I will try this. At present, we are reading In addition to parsing (scanner+parser), I proposed to align YamlDotNet's emitter with what is expected by yaml-test-suite. Thinking from the perspective of
Thank you again for confirmation! Then YDN's scanning logic complies by skipping the linebreak in this case. It was for the curiosity; whether we need to remember this linebreak for output emitters. |
The test 6LVF will be invalid in YAML 1.3 with this rule (because three dashes and a space are always a document header and never content). The test cases were (and are) produced manually and automatically. The problem is we don't have a perfect parser and emitter (yet) ;-) I wrote all The idea is: When there is an But this part is work in progress, so still a lot of test cases probably need an Another thing which needs to be done is, mapping and sequence events need the information about flow or block style. So, there's still a lot todo! |
The only difference between 2LFX and 6LVF is a linebreak before
"foo
inin.yaml
andout.yaml
.Is it redundant or is this to assert that downstream emitter should respect linebreak before
"foo
(even though the expected event streams are identical)?The text was updated successfully, but these errors were encountered: