From 4141766275df3f64c3147ee45d160b47178d44f1 Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Tue, 6 May 2003 22:13:38 +0000 Subject: [PATCH] r4861: Auto commit for Debian build --- mop.lisp | 6 +++++- views.lisp | 5 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/mop.lisp b/mop.lisp index 28b2302..458736b 100644 --- a/mop.lisp +++ b/mop.lisp @@ -11,7 +11,7 @@ ;;;; in Text, HTML, and XML formats. This includes hyperlinking ;;;; capability and sub-objects. ;;;; -;;;; $Id: mop.lisp,v 1.67 2003/04/29 09:39:45 kevin Exp $ +;;;; $Id: mop.lisp,v 1.68 2003/05/06 22:13:38 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; @@ -265,6 +265,10 @@ #+ho-normal-esdc (setq cl:*features* (delete :ho-normal-esdc cl:*features*)) +(defun lisp-type-is-a-string (type) + (or (eq type string) + (and (listp type) (some #'(lambda (x) (eq x string)) type)))) + (defun value-type-to-lisp-type (value-type) (case (if (atom value-type) value-type diff --git a/views.lisp b/views.lisp index 37d6ad4..ad1874d 100644 --- a/views.lisp +++ b/views.lisp @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: views.lisp,v 1.28 2003/05/06 22:00:42 kevin Exp $ +;;;; $Id: views.lisp,v 1.29 2003/05/06 22:13:38 kevin Exp $ ;;;; ;;;; This file is Copyright (c) 2000-2002 by Kevin M. Rosenberg ;;;; @@ -263,8 +263,7 @@ :xhtml-link-labels :xml-link-labels :ie-xml-link :ie-xml-link-labels) (or print-formatter - (string-equal (write-to-string type) "cdata") - (string-equal (write-to-string type) "string"))) + (lisp-type-is-a-string type)))) (setq func `(kmrcl:xml-cdata ,func))) (push func value-func)) ))) -- 2.34.1