From e46687c6a99460ec9bd4e19ede56b38453cabe72 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sun, 27 Sep 2009 03:40:14 -0700 Subject: [PATCH] Strip angle brackets off record-type name when printing record. --- src/runtime/record.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/runtime/record.scm b/src/runtime/record.scm index bd3b56f5c..78301dfd4 100644 --- a/src/runtime/record.scm +++ b/src/runtime/record.scm @@ -87,7 +87,11 @@ USA. (let ((tag (cadr tags))) (cond ((record-type? (dispatch-tag-contents tag)) (standard-unparser-method - (%record-type-name (dispatch-tag-contents tag)) + (let ((name (%record-type-name (dispatch-tag-contents tag)))) + (if (and (string-prefix? "<" name) + (string-suffix? ">" name)) + (substring name 1 (fix:- (string-length name) 1)) + name)) #f)) ((eq? tag record-type-type-tag) (standard-unparser-method 'RECORD-TYPE -- 2.25.1