r4229: *** empty log message ***
[lml.git] / base.lisp
index 4a03e71632aa245ba6cd35bccd957a553d3bad60..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.11 2003/02/17 06:48:46 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
 ;;;;
@@ -49,7 +49,7 @@
   (format *html-output* "~A~%" s))
 
 (defun lml-write-char (char)
-  (write-char char *html-output))
+  (write-char char *html-output*))
 
 (defun lml-print-date (date)
   (lml-princ (date-string date)))
 (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"