r4229: *** empty log message ***
[lml.git] / base.lisp
index 20a1677c3abde47a40baef1df288c877d8208e8b..ac32af829547c79126aaca158049d1b7f327dc9a 100644 (file)
--- a/base.lisp
+++ b/base.lisp
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: base.lisp,v 1.12 2003/03/05 04:25:09 kevin Exp $
+;;;; $Id: base.lisp,v 1.13 2003/03/23 18:38:16 kevin Exp $
 ;;;;
 ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 (defmacro with-no-endtag-attr-string (tag attr-string)
   (let ((attr (gensym)))
   `(let ((,attr ,attr-string))
-     (lml-format "<~(~A~) ~A />" ',tag
+     (lml-format "<~(~A~)~A />" ',tag
              (if (and (stringp ,attr) (plusp (length ,attr)))
-                 (format nil "~A" ,attr)
-               "")))))
+                 (format nil " ~A" ,attr)
+                 "")))))
 
 (defun one-keyarg-string (key value)
   "Return attribute string for keys"