Do not use CPT_ESCAPE for every CPT_QUOTE, instead if it was a protect-quote, then just put the CPT_QUOTE in.
original commit: 53fdc09e7a
This commit is contained in:
parent
9b95b87049
commit
d8dae45321
|
@ -1078,14 +1078,14 @@
|
|||
(out-wrapped expr out)]
|
||||
[else
|
||||
(out-byte CPT_QUOTE out)
|
||||
(if (quoted? expr)
|
||||
(out-data (quoted-v expr) out)
|
||||
(let ([s (open-output-bytes)])
|
||||
(write (if (quoted? expr)
|
||||
(quoted-v expr)
|
||||
expr) s)
|
||||
(write expr s)
|
||||
(out-byte CPT_ESCAPE out)
|
||||
(let ([bstr (get-output-bytes s)])
|
||||
(out-number (bytes-length bstr) out)
|
||||
(out-bytes bstr out)))]))
|
||||
(out-bytes bstr out))))]))
|
||||
|
||||
|
||||
(define-struct quoted (v) #:prefab)
|
||||
|
|
Loading…
Reference in New Issue
Block a user