Make OD-API for consistent for constraints, LHS patterns, RHS actions.

This commit is contained in:
Joeri Exelmans 2024-11-07 11:05:06 +01:00
parent 1eb8a84553
commit 9c68b288c1
8 changed files with 108 additions and 79 deletions

View file

@ -110,7 +110,8 @@ def render_object_diagram(state, m, mm, render_attributes=True, prefix_ids=""):
slot = m_od.get_slot(obj_node, attr_name)
if slot != None:
val, type_name = od.read_primitive_value(bottom, slot, mm)
output += f"\n{attr_name} => {display_value(val, type_name)}"
escaped_newline = ";"
output += f"\n{attr_name} => {display_value(val, type_name, newline_character=escaped_newline)}"
output += '\n}'
output += '\n'