You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
I would like to be able to print in a different way \n inside strings.
Example:
use serde::Serialize;#[derive(Serialize,Debug)]structA{b:String,c:String,}fnmain(){let a = A{b:"aaa\nbbb\n".to_string(),c:"ccc".to_string(),};let yaml = serde_yaml::to_string(&a).unwrap();println!("{}", yaml);}
I would like to be able to print in a different way
\n
inside strings.Example:
prints:
Instead I would like to have:
Maybe this could be a good fit for a function similar to serde_json::to_string_pretty
The text was updated successfully, but these errors were encountered: