make diag handle multi-line strings
TAP-compliant output