use quad not string as dummy element

a string will get concatenated to a subsequent string
main
Matthew Butterick 2 years ago
parent 011d5d8c48
commit e3c49c9f8d

@ -179,7 +179,7 @@
#:txexpr-proc smart-quotes)]) #:txexpr-proc smart-quotes)])
(match qx (match qx
[(txexpr tag attrs elements) [(txexpr tag attrs elements)
;; we insert a dummy element "." ;; we insert a dummy quad '(q ".")
;; (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)
;; to get a sample of the global attrs ;; to get a sample of the global attrs
@ -187,7 +187,7 @@
;; but keep the attrs around in case anyone needs to use them ;; but keep the attrs around in case anyone needs to use them
;; for instance, quads added to the layout like footers ;; for instance, quads added to the layout like footers
;; won't have another way of getting this ;; won't have another way of getting this
(list* tag attrs (cons "." elements))]))) (list* tag attrs (cons '(q ".") elements))])))
;; apply some default styling attributes. ;; apply some default styling attributes.
;; These will only be used if the underlying q-expression hasn't specified its own values, ;; These will only be used if the underlying q-expression hasn't specified its own values,

Loading…
Cancel
Save