.
original commit: 07fbcdd93fe4e22c6b6a1732e1c4d25b13e6cf78
This commit is contained in:
parent
f9b065678b
commit
43464a2ba5
|
@ -502,20 +502,12 @@
|
|||
(out s col)))))
|
||||
((char? obj) (if display?
|
||||
(out (make-string 1 obj) col)
|
||||
(out (case obj
|
||||
((#\space) "space")
|
||||
((#\newline) "newline")
|
||||
((#\linefeed) "linefeed")
|
||||
((#\return) "return")
|
||||
((#\rubout) "rubout")
|
||||
((#\backspace)"backspace")
|
||||
((#\nul) "nul")
|
||||
((#\page) "page")
|
||||
((#\tab) "tab")
|
||||
((#\vtab) "vtab")
|
||||
((#\newline) "newline")
|
||||
(else (make-string 1 obj)))
|
||||
(out "#\\" col))))
|
||||
(out
|
||||
;; Must go through string to determe "printable" chars in any case:
|
||||
(let ([p (open-output-string)])
|
||||
(write obj p)
|
||||
(get-output-string p))
|
||||
col)))
|
||||
|
||||
;; Let symbol get printed by default case to get proper quoting
|
||||
;; ((symbol? obj) (out (symbol->string obj) col))
|
||||
|
|
Loading…
Reference in New Issue
Block a user