Problem:
The MPR writer appends a trailing newline to non-empty EndEvent ReturnValue fields. Pristine MPRs store the return expression without that newline, and the extra character can make some return expressions fail Studio Pro validation.
Expected:
The writer should preserve the EndEvent return expression exactly, without adding synthetic trailing whitespace.
Impact:
Roundtrip rewrites differ from pristine Studio Pro output and can produce validation errors for some return contexts.
Proposed fix:
Write ReturnValue directly instead of appending \n.
Problem:
The MPR writer appends a trailing newline to non-empty EndEvent
ReturnValuefields. Pristine MPRs store the return expression without that newline, and the extra character can make some return expressions fail Studio Pro validation.Expected:
The writer should preserve the EndEvent return expression exactly, without adding synthetic trailing whitespace.
Impact:
Roundtrip rewrites differ from pristine Studio Pro output and can produce validation errors for some return contexts.
Proposed fix:
Write
ReturnValuedirectly instead of appending\n.