Currently using diag.fmt("bad.zon") will produce a string that always has a trailing newline, bubbling out to diag.log("bad.zon") having an extra newline.
error: bad.zon:1:3: error: expected expression, found 'EOF'
Thanks! Took a mo to get that reported with Codeberg being unhappy this weekend, but here it is.
I can have a go myself too if you don’t get to it, other than finding callsites in the stdlib that might be relying on the extra newline it seems fairly simple.