
Thanks for suggesting (str). The correct code (without importing the cl-who package): (cl-who:with-html-output-to-string (*standard-output* nil :prologue nil :indent t) (:p (cl-who:str (concatenate 'string "abc" "def")))) The current docs <http://weitz.de/cl-who/#str> don't say anything about (format nil) not working inside of with-html-output-to-string; they just say that (str) has no binding. A simple notice would aid new Lispers, myself included. Cheers, Andrew Pennebaker www.yellosoft.us On Wed, Mar 2, 2011 at 2:23 AM, Osei Poku <osei.poku@gmail.com> wrote:
Try:
(cl-who:with-html-output-to-string (*standard-output* nil :prologue nil :indent t) (:p (str (concatenate 'string "abc" "def"))))
i.e., enclose the lisp form generating the string with (str )
Osei
On Mar 2, 2011, at 2:13 AM, Andrew Pennebaker wrote:
According to the documentation, with-html-output-to-string can evaluate Lisp forms. In my experience, this is not the case.
(cl-who:with-html-output-to-string (*standard-output* nil :prologue nil :indent t) (:p (concatenate 'string "abc" "def")))
Should return
"<p> abcdef </p>"
but it actually returns
"<p> </p>"
Specs: • Lispbox CCL 1.6 • Mac OS X 10.6.6 and Ubuntu 10.10 Maverick Cheers, Andrew Pennebaker _______________________________________________ cl-who-devel site list cl-who-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-who-devel
_______________________________________________ cl-who-devel site list cl-who-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/cl-who-devel