From 462d0e9d539c05fbf43227e40ef6265be4789267 Mon Sep 17 00:00:00 2001 From: elvis Date: Sat, 25 Oct 2025 17:38:07 +0200 Subject: [PATCH] better print for systems --- rsprocess/src/system.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rsprocess/src/system.rs b/rsprocess/src/system.rs index 40c5e6c..898be1a 100644 --- a/rsprocess/src/system.rs +++ b/rsprocess/src/system.rs @@ -668,7 +668,7 @@ impl PrintableWithTranslator for System { ) -> std::fmt::Result { write!( f, - "[delta: {}, available_entities: {}, context_process: {}, \ + "[\ndelta: {},\navailable_entities: {},\ncontext_process: {},\n\ reaction_rules: [", Formatter::from(translator, &*self.delta), Formatter::from(translator, &self.available_entities), @@ -682,7 +682,7 @@ impl PrintableWithTranslator for System { write!(f, "{}, ", Formatter::from(translator, el))?; } } - write!(f, "] ]") + write!(f, "]\n]") } } @@ -982,7 +982,7 @@ impl PrintableWithTranslator for PositiveSystem { ) -> std::fmt::Result { write!( f, - "[delta: {}, available_entities: {}, context_process: {}, \ + "[\ndelta: {},\navailable_entities: {},\ncontext_process: {},\n\ reaction_rules: [", Formatter::from(translator, &*self.delta), Formatter::from(translator, &self.available_entities), @@ -996,7 +996,7 @@ impl PrintableWithTranslator for PositiveSystem { write!(f, "{}, ", Formatter::from(translator, el))?; } } - write!(f, "] ]") + write!(f, "]\n]") } }