-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix multiline string emit. #8
Conversation
Use `|-` instead of `|` when there is not a trailing newline in the string value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These notes are mostly polish to get it perfect. I don't mind if this is merged as-is, but if these notes are addressed then it'll make it even better. Thanks for getting this working.
For some reason, I hadn't noticed you opened a PR on saphyr as well. Thanks! <3 @davvid I ported the few style changes you requested to |
emitter.dump(original).unwrap(); | ||
|
||
let documents = Yaml::load_from_str(&emitted).unwrap(); | ||
println!("emitted {emitted}"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was this a leftover debugging println or is this here for future debugging purposes? just checking in case we should trim it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not against keeping it anyway. They are captured by cargo test
and discarded unless the test fails.
Our test suite takes ~0.2s on my machine to run so we can afford a little bit of extra debugging detail should something fail in the future.
Thank you! <3 |
Use
|-
instead of|
when there is not a trailing newline in the string value.