[cl-who-devel] Changing *attribute-quote-char*

Andrei Stebakov lispercat at gmail.com
Tue Aug 12 22:07:46 UTC 2008


By default the variable is initialized to #\'
If I want to change it to #\" via local binding I still get the single
quotes in the resulting string.

(let ((*attribute-quote-char* #\"))
  (with-html-output-to-string (*standard-output* nil :prologue nil :indent
nil)
    (:html
     (:head
      (:title "title")
      (:meta :name "DESCRIPTION" :content "description")
      (:meta :name "KEYWORDS" :content "keywords")))))

I get:
"<html><head><title>title</title><meta name='DESCRIPTION'
content='description' /><meta name='KEYWORDS' content='keywords'
/></head></html>"

Is it possible to make a local new binding or I should change it only
globally?

Thank you,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-who-devel/attachments/20080812/c4671f49/attachment.html>


More information about the Cl-who-devel mailing list