Use write for keys rather than display in pretty-print-matcher

This commit is contained in:
Tony Garnock-Jones 2014-06-17 21:53:09 -04:00
parent 25ee780598
commit 77f876c737
1 changed files with 6 additions and 4 deletions

View File

@ -859,10 +859,12 @@
(d " ")
(define keystr (call-with-output-string
(lambda (p)
(if (struct-type? key)
(begin (display "<s:" p)
(display (struct-type-name key) p))
(display key p)))))
(cond
[(struct-type? key)
(display "<s:" p)
(display (struct-type-name key) p)]
[else
(write key p)]))))
(d keystr)
(walk (+ i 1 (string-length keystr)) k)
#t))]))