-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
YAML::Literal
does not work for YAML::Binary
#1287
Comments
I think it's an oversight, but it's possible there's some rule about the typing of a literal, we'd have to check first. |
Are you referring to a rule in the YAML spec? |
Yes. |
There is an example under Section 2.4 Tags (Example 2.23) showing binary content in the Literal style: https://yaml.org/spec/1.2.2/#24-tags It seems that the spec does support binary content using the literal style and that this is in fact an oversight. Would it be possible for you to fix this? |
Sounds good, open to PRs. (Incidentally, my rule of thumb for this project is: if I can do it on my phone, then I'll do it. So basically no more coding for me.) |
I noticed that when
YAML::Literal
is used when emitting aYAML::Binary
, it does not take effect.Code:
Output:
What I would expect would be for the binary to be displayed in the literal syntax, ideally with line wrapping, something like this: https://github.com/zeldamods/oead/blob/b31e5bc96bab9ee7e84971c8f2ca34073d0263af/test/byml/files/binary.yml
@jbeder Is this intentional or is this a bug?
The text was updated successfully, but these errors were encountered: