Skip to content

Commit

Permalink
Enable multiline strings when serializing yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
maddymakesgames committed May 28, 2024
1 parent 45cbaea commit f1653a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/saves/def/mods/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ pub trait ModFile: Sized {

fn to_writer(&self, writer: &mut impl Write) -> anyhow::Result<()> {
let yaml = self.to_yaml()?;

Ok(YamlEmitter::new(writer).dump(&yaml)?)
let mut emitter = YamlEmitter::new(writer);
emitter.multiline_strings(true);
Ok(emitter.dump(&yaml)?)
}
}

Expand Down

0 comments on commit f1653a4

Please sign in to comment.