Fixed escaped to support the documented double-quoting functionality

when esc-char is #f.
This commit is contained in:
Jim Rees 2018-03-26 06:44:37 -04:00
parent 88e8d89460
commit b3100857fd

View file

@ -41,8 +41,9 @@
(let-optionals* o ((quot #\")
(esc #\\)
(rename (lambda (x) #f)))
(let ((quot-str (if (char? quot) (string quot) quot))
(esc-str (if (char? esc) (string esc) esc)))
(let ((esc-str (cond ((char? esc) (string esc))
((not esc) (string quot))
(else esc))))
(fn (output)
(define (output* str)
(let ((start (string-cursor-start str))