X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=utils.lisp;h=8ebcefcb43e0677ad2c89d07190fecdc003d6095;hb=b2d601fcc40acb08a61cb3607f4455bfbd3126fc;hp=a1830451579f3ab3fc01f6cbc29922fb25968395;hpb=dbc081b24745cd05f4513150d81ea1e4f990f634;p=lml.git diff --git a/utils.lisp b/utils.lisp index a183045..8ebcefc 100644 --- a/utils.lisp +++ b/utils.lisp @@ -1,4 +1,4 @@ -;;; $Id: utils.lisp,v 1.4 2002/12/08 22:38:06 kevin Exp $ +;;; $Id: utils.lisp,v 1.6 2003/02/15 03:00:22 kevin Exp $ ;;;; ;;;; General purpose utilities @@ -19,7 +19,9 @@ (string-equal "keyword" (package-name (symbol-package x))))) (defun list-to-spaced-string (list) - (format nil "~{ ~A~}" list)) + (if (consp list) + (format nil "~A~{ ~A~}" (first list) (rest list)) + "")) (defun indent-spaces (n &optional (stream *standard-output*)) "Indent n*2 spaces to output stream"