From: Kevin M. Rosenberg Date: Wed, 14 May 2003 07:05:24 +0000 (+0000) Subject: r4931: Auto commit for Debian build X-Git-Tag: debian-2.11.0-2~78 X-Git-Url: http://git.kpe.io/?p=hyperobject.git;a=commitdiff_plain;h=d9d94a840a96a47da55d76b641f1140991ac410c r4931: Auto commit for Debian build --- diff --git a/views.lisp b/views.lisp index 2db0a03..ee6008e 100644 --- a/views.lisp +++ b/views.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: views.lisp,v 1.40 2003/05/14 07:00:47 kevin Exp $ +;;;; $Id: views.lisp,v 1.41 2003/05/14 07:05:24 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg ;;;; ************************************************************************* @@ -160,6 +160,10 @@ ) ) +(defmacro write-simple (v s) + `(if (stringp ,v) + (write-string ,v ,s) + (write-string (write-to-string ,v) ,s))) (defun write-ho-value (obj name type formatter cdata strm) (declare (ignorable type)) @@ -170,11 +174,8 @@ (data (if cdata (kmrcl:xml-cdata fmt-data) fmt-data))) - (typecase data - (string - (write-string data strm)) - (t - (write-string (write-to-string data) strm))))) + (write-simple data strm))) + (defun ppfc-html (title name type formatter cdata print-func) (vector-push-extend '(write-string "