better print for systems

This commit is contained in:
elvis
2025-10-25 17:38:07 +02:00
parent 3c8c3197ae
commit 462d0e9d53

View File

@ -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]")
}
}