From f1653a47206fbace29977c7bc17ebe61afa1b920 Mon Sep 17 00:00:00 2001 From: maddymakesgames Date: Tue, 28 May 2024 03:21:38 -0400 Subject: [PATCH] Enable multiline strings when serializing yaml --- lib/src/saves/def/mods/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/src/saves/def/mods/mod.rs b/lib/src/saves/def/mods/mod.rs index 83438f8..feb76f2 100644 --- a/lib/src/saves/def/mods/mod.rs +++ b/lib/src/saves/def/mods/mod.rs @@ -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)?) } }