tutorial render bug (fixes #61)

main
Matthew Butterick 4 years ago
parent 8323fd042b
commit 9e61117542

@ -0,0 +1,10 @@
#lang racket
(require quadwriter)
(define doc
'(q
(q "Brennan likes fancy sauce.")
(para-break)
(q "Dale hates fancy sauce.")))
(provide doc)

@ -8,6 +8,7 @@
racket/dict racket/dict
pitfall pitfall
quad quad
(only-in txexpr txexpr) ; matcher
hyphenate hyphenate
pollen/decode pollen/decode
sugar/coerce sugar/coerce
@ -177,7 +178,7 @@
#:string-proc (compose1 smart-ellipses smart-dashes) #:string-proc (compose1 smart-ellipses smart-dashes)
#:txexpr-proc smart-quotes)]) #:txexpr-proc smart-quotes)])
(match qx (match qx
[(list tag attrs elements ...) [(txexpr tag attrs elements)
;; we insert a dummy element "." ;; we insert a dummy element "."
;; (could be anything, but we want to use something obvious ;; (could be anything, but we want to use something obvious
;; so we don't trigger a fallback font) ;; so we don't trigger a fallback font)

Loading…
Cancel
Save